From e76ef9aaa8ca8e1913e49492b4d27470df6481cb Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Tue, 15 Nov 2016 14:33:06 +0100 Subject: 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 --- lib/autoloader.php | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'lib/autoloader.php') 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; } -- cgit v1.2.3