From 7c34fee7ebc09ffaaf14019ae195b1b42e138e3f Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Thu, 27 Nov 2014 16:06:48 +0100 Subject: use extended info.xml instead of app.json --- tests/classloader.php | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'tests/classloader.php') diff --git a/tests/classloader.php b/tests/classloader.php index a576eb8d0..648b7432d 100644 --- a/tests/classloader.php +++ b/tests/classloader.php @@ -34,6 +34,16 @@ spl_autoload_register(function ($className){ ); $relPath = __DIR__ . '/../../../lib/public' . $path; + if(file_exists($relPath)){ + require_once $relPath; + } + } else if(strpos($className, 'Test\\') === 0) { + $path = strtolower( + str_replace('\\', '/', substr($className, 4)) . '.php' + ); + echo $path; + $relPath = __DIR__ . '/../../../tests/lib' . $path; + if(file_exists($relPath)){ require_once $relPath; } -- cgit v1.2.3