diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2016-11-15 21:48:55 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-15 21:48:55 +0100 |
commit | 28babd319b0322a06d5019f373c7ce6d9edf61dd (patch) | |
tree | 38ea16445d746e3621b8b414e4cfa85444a64baf /lib | |
parent | 51688986df4a4d3d99ede3576c1639917a3da738 (diff) | |
parent | e76ef9aaa8ca8e1913e49492b4d27470df6481cb (diff) | |
download | nextcloud-server-28babd319b0322a06d5019f373c7ce6d9edf61dd.tar.gz nextcloud-server-28babd319b0322a06d5019f373c7ce6d9edf61dd.zip |
Merge pull request #2137 from nextcloud/make-sure-tests-run-on-phpunit-4-again
Add a magic wrapper to allow phpunit4 to run the code again
Diffstat (limited to 'lib')
-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; } |