From da96d1adb02a9801cf314178507049e7383ce56a Mon Sep 17 00:00:00 2001 From: Thomas Mueller Date: Tue, 19 Mar 2013 18:00:15 +0100 Subject: [PATCH] some basic unit test for loading classes --- tests/lib/autoloader.php | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 tests/lib/autoloader.php diff --git a/tests/lib/autoloader.php b/tests/lib/autoloader.php new file mode 100644 index 00000000000..e769bf3bcf6 --- /dev/null +++ b/tests/lib/autoloader.php @@ -0,0 +1,19 @@ + + * This file is licensed under the Affero General Public License version 3 or + * later. + * See the COPYING-README file. + */ + +class Test_AutoLoader extends PHPUnit_Framework_TestCase { + + public function testLeadingSlashOnClassName(){ + $this->assertTrue(class_exists('\OC\Files\Storage\Local')); + } + + public function testNoLeadingSlashOnClassName(){ + $this->assertTrue(class_exists('OC\Files\Storage\Local')); + } + +} -- 2.39.5