some basic unit test for loading classes
This commit is contained in:
parent
c3a64012d8
commit
5750dc9833
1 changed files with 19 additions and 0 deletions
19
tests/lib/autoloader.php
Normal file
19
tests/lib/autoloader.php
Normal 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'));
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in a new issue