summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2013-08-20 17:21:14 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2013-08-20 17:21:14 +0200
commit93194bb39617d4b11a0a84b8cd4caf0491155961 (patch)
tree7c2a42aec1b59b24ab6adde6207f94ee737ec676 /tests
parentcdada78aa4acd2880e0344a476d3c1d838645ae5 (diff)
downloadnextcloud-server-93194bb39617d4b11a0a84b8cd4caf0491155961.tar.gz
nextcloud-server-93194bb39617d4b11a0a84b8cd4caf0491155961.zip
Introducing IContainer into public api
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/appframework/classloader.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/lib/appframework/classloader.php b/tests/lib/appframework/classloader.php
index ae485e67b2c..cd9f893df30 100644
--- a/tests/lib/appframework/classloader.php
+++ b/tests/lib/appframework/classloader.php
@@ -32,6 +32,15 @@ spl_autoload_register(function ($className){
}
}
+ if (strpos($className, 'OCP\\') === 0) {
+ $path = strtolower(str_replace('\\', '/', substr($className, 3)) . '.php');
+ $relPath = __DIR__ . '/../../../lib/public' . $path;
+
+ if(file_exists($relPath)){
+ require_once $relPath;
+ }
+ }
+
// FIXME: this will most probably not work anymore
if (strpos($className, 'OCA\\') === 0) {