]> source.dussan.org Git - nextcloud-server.git/commitdiff
some basic unit test for loading classes
authorThomas Mueller <thomas.mueller@tmit.eu>
Tue, 19 Mar 2013 17:00:15 +0000 (18:00 +0100)
committerVicDeo <victor.dubiniuk@gmail.com>
Sun, 31 Mar 2013 12:50:29 +0000 (16:50 +0400)
tests/lib/autoloader.php [new file with mode: 0644]

diff --git a/tests/lib/autoloader.php b/tests/lib/autoloader.php
new file mode 100644 (file)
index 0000000..e769bf3
--- /dev/null
@@ -0,0 +1,19 @@
+<?php
+/**
+ * Copyright (c) 2013 Thomas Müller <thomas.mueller@tmit.eu>
+ * 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'));
+       }
+
+}