Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@owncloud.com>2016-05-19 16:45:34 +0300
committerJoas Schilling <nickvergessen@owncloud.com>2016-05-19 16:45:34 +0300
commitf8180391fd668ec8e4cb6366bf43682ced99509b (patch)
tree39c4b7fa0cda368a95a2df040b16b129a645ee62 /tests
parentffa463382231cac2446b0a39520b53068e4581b9 (diff)
Create a Fallback in the old autoloader for PSR-4 Test\TestCase
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/TestCase.php (renamed from tests/lib/testcase.php)0
-rw-r--r--tests/lib/autoloader.php6
2 files changed, 6 insertions, 0 deletions
diff --git a/tests/lib/testcase.php b/tests/lib/TestCase.php
index 7ed121d3556..7ed121d3556 100644
--- a/tests/lib/testcase.php
+++ b/tests/lib/TestCase.php
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'