some basic unit test for loading classes

This commit is contained in:
Thomas Mueller 2013-03-19 18:00:15 +01:00
parent c3a64012d8
commit 5750dc9833

19
tests/lib/autoloader.php Normal file
View file

@ -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'));
}
}