summaryrefslogtreecommitdiffstats
path: root/tests/lib/autoloader.php
diff options
context:
space:
mode:
authorThomas Mueller <thomas.mueller@tmit.eu>2013-03-19 18:00:15 +0100
committerThomas Mueller <thomas.mueller@tmit.eu>2013-03-19 18:00:15 +0100
commit5750dc9833be45bd94ae95dfd1c61a79a7d33058 (patch)
tree22546e15bae3857c093f017bcfde194500160f3f /tests/lib/autoloader.php
parentc3a64012d83b424421555b642c2bd8c59bde82c1 (diff)
downloadnextcloud-server-5750dc9833be45bd94ae95dfd1c61a79a7d33058.tar.gz
nextcloud-server-5750dc9833be45bd94ae95dfd1c61a79a7d33058.zip
some basic unit test for loading classes
Diffstat (limited to 'tests/lib/autoloader.php')
-rw-r--r--tests/lib/autoloader.php19
1 files changed, 19 insertions, 0 deletions
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 @@
+<?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'));
+ }
+
+}