summaryrefslogtreecommitdiffstats
path: root/lib/base.php
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2013-01-07 00:36:01 +0100
committerRobin Appelman <icewind@owncloud.com>2013-01-07 00:36:01 +0100
commit0ca5047da56c1b6d0614174b01d42bace85d53ee (patch)
treebcdd3edf3afcccc4561a12120fd7ce5188c1bb38 /lib/base.php
parente8d08d4930fae31a665c679b5ac1a147859eb099 (diff)
downloadnextcloud-server-0ca5047da56c1b6d0614174b01d42bace85d53ee.tar.gz
nextcloud-server-0ca5047da56c1b6d0614174b01d42bace85d53ee.zip
Autoload namespaced test classes
Diffstat (limited to 'lib/base.php')
-rw-r--r--lib/base.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/base.php b/lib/base.php
index 3d3e7d59f90..80e5c5ed77b 100644
--- a/lib/base.php
+++ b/lib/base.php
@@ -105,6 +105,8 @@ class OC
$path = str_replace('\\', '/', $className) . '.php';
} elseif (strpos($className, 'Test_') === 0) {
$path = 'tests/lib/' . strtolower(str_replace('_', '/', substr($className, 5)) . '.php');
+ } elseif (strpos($className, 'Test\\') === 0) {
+ $path = 'tests/lib/' . strtolower(str_replace('\\', '/', substr($className, 5)) . '.php');
} else {
return false;
}