|
@@ -6,16 +6,10 @@ use BasicWeb\Autoloader;
|
|
|
define('PATH', 'tests/_files/');
|
|
define('PATH', 'tests/_files/');
|
|
|
|
|
|
|
|
class AutoloaderTest extends PHPUnit_Framework_TestCase {
|
|
class AutoloaderTest extends PHPUnit_Framework_TestCase {
|
|
|
- var $autoloader;
|
|
|
|
|
-
|
|
|
|
|
function setUp() {
|
|
function setUp() {
|
|
|
$this->autoloader = new Autoloader(PATH);
|
|
$this->autoloader = new Autoloader(PATH);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- function tearDown() {
|
|
|
|
|
- unset($this->autoloader);
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
function test_path_with_slash() {
|
|
function test_path_with_slash() {
|
|
|
$this->assertEquals(Autoloader::path_with_slash('dirname'), 'dirname/');
|
|
$this->assertEquals(Autoloader::path_with_slash('dirname'), 'dirname/');
|
|
|
$this->assertEquals(Autoloader::path_with_slash('dirname/'), 'dirname/');
|
|
$this->assertEquals(Autoloader::path_with_slash('dirname/'), 'dirname/');
|