Problem/Motivation
ApcuBackendUnitTest fails in PHP7 because there is no APC available for it yet.
Proposed resolution
GenericCacheBackendUnitTestBase is built on KTB in simpletest which doesn't have an explicit "Skip" functionality like phpunit which would be ideal. Moving to KTBTNG would be fairly disruptive and alex raised the point that there are still several outstanding bugs associated with it.
That leaves us with hard coding skip functionality into the tests. Ugly but it works.
Remaining tasks
User interface changes
n/a
API changes
n/a
Data model changes
n/a
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | 2554065-7.interdiff.txt | 5.05 KB | neclimdul |
| #7 | fix_apc_test_for_php_7-2554065-7.patch | 3.86 KB | neclimdul |
Comments
Comment #2
neclimdulPatch
Comment #3
cilefen commentedThis is interesting.
Comment #4
catchComment #5
catchComment #6
larowlanCan we move this to a protected method and save the duplication?
Comment #7
neclimdulBecause of the return, we can only save the foreach so I didn't bother but we surely can.
Comment #8
larowlanIts ugly, but its a necessary evil for now, and documented.
Comment #9
alexpottYep a necessary evil - but harmless given it is tests only. Committed de2e8a9 and pushed to 8.0.x. Thanks!