diff options
author | Joas Schilling <coding@schilljs.com> | 2016-11-15 16:33:06 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2016-11-15 16:49:14 +0300 |
commit | e76ef9aaa8ca8e1913e49492b4d27470df6481cb (patch) | |
tree | af7f1b9f9a25ed9a6c324cf475996158c482eece /lib/autoloader.php | |
parent | 571c5aac5e87deee1933f605d366060a82323621 (diff) |
Add a magic wrapper from hell to allow phpunit4 to run the code again
Remove this once phpunit 5 is the lowest supported version, by reverting:
https://github.com/nextcloud/server/pull/2137
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/autoloader.php')
-rw-r--r-- | lib/autoloader.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/autoloader.php b/lib/autoloader.php index 08188ef8e59..3fff025080e 100644 --- a/lib/autoloader.php +++ b/lib/autoloader.php @@ -117,6 +117,13 @@ class Autoloader { // This File is considered public API, so we make sure that the class // can still be loaded, although the PSR-4 paths have not been loaded. $paths[] = \OC::$SERVERROOT . '/tests/lib/TestCase.php'; + + } elseif ($class === 'Test\\TestCasePhpUnitCompatibility') { + $paths[] = \OC::$SERVERROOT . '/tests/lib/TestCasePhpUnitCompatibility.php'; + } elseif ($class === 'Test\\TestCasePhpUnit5') { + $paths[] = \OC::$SERVERROOT . '/tests/lib/TestCasePhpUnit5.php'; + } elseif ($class === 'Test\\TestCasePhpUnit4') { + $paths[] = \OC::$SERVERROOT . '/tests/lib/TestCasePhpUnit4.php'; } return $paths; } |