better tests

This commit is contained in:
Anton Grebnev
2011-10-10 14:21:44 +04:00
parent 3c3071fb15
commit 7d12bcf26c
3 changed files with 53 additions and 1 deletions

View File

@ -56,6 +56,20 @@ class LoadTest extends PHPUnit_Framework_TestCase
$autoload = require(self::$file);
$this->assertNotEmpty($autoload);
Load::autoload('Action');
}
public function testDebugAutoload()
{
Load::setAutoloadFrom(self::$file);
$autoload = require(self::$file);
$this->assertNotEmpty($autoload);
define('DEBUG', true);
Load::autoload('Func');
Load::autoload('Captcha');
}
public function testAutoloadArrayExists()