summaryrefslogtreecommitdiffstats
path: root/tests/lib/autoloader.php
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@owncloud.com>2016-05-19 15:45:34 +0200
committerJoas Schilling <nickvergessen@owncloud.com>2016-05-19 15:45:34 +0200
commitf8180391fd668ec8e4cb6366bf43682ced99509b (patch)
tree39c4b7fa0cda368a95a2df040b16b129a645ee62 /tests/lib/autoloader.php
parentffa463382231cac2446b0a39520b53068e4581b9 (diff)
downloadnextcloud-server-f8180391fd668ec8e4cb6366bf43682ced99509b.tar.gz
nextcloud-server-f8180391fd668ec8e4cb6366bf43682ced99509b.zip
Create a Fallback in the old autoloader for PSR-4 Test\TestCase
Diffstat (limited to 'tests/lib/autoloader.php')
-rw-r--r--tests/lib/autoloader.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/lib/autoloader.php b/tests/lib/autoloader.php
index 5268ef424d3..3669f514bee 100644
--- a/tests/lib/autoloader.php
+++ b/tests/lib/autoloader.php
@@ -37,6 +37,12 @@ class AutoLoader extends TestCase {
], $this->loader->findClass('OC_Files'));
}
+ public function testLoadTestTestCase() {
+ $this->assertEquals([
+ \OC::$SERVERROOT . '/tests/lib/TestCase.php'
+ ], $this->loader->findClass('Test\TestCase'));
+ }
+
public function testLoadTestNamespace() {
$this->assertEquals([
\OC::$SERVERROOT . '/tests/lib/foo/bar.php'