better coverage
This commit is contained in:
@ -44,4 +44,5 @@ class ConfigTest extends PHPUnit_Framework_TestCase
|
||||
$new_arr = Config::get(0);
|
||||
$this->assertEquals('ConfigArray', get_class($new_arr));
|
||||
}
|
||||
|
||||
}
|
@ -82,7 +82,7 @@ class LoadTest extends PHPUnit_Framework_TestCase
|
||||
public function testAutoloadGetFilePath()
|
||||
{
|
||||
$autoload = require(self::$file);
|
||||
$this->assertNotEmpty($autoload['Registry']);
|
||||
$this->assertNotEmpty(Load::getFilePath('Registry'));
|
||||
}
|
||||
|
||||
/**
|
||||
@ -92,7 +92,7 @@ class LoadTest extends PHPUnit_Framework_TestCase
|
||||
public function testAutoloadGetFilePathNullIndex()
|
||||
{
|
||||
$autoload = require(self::$file);
|
||||
$this->assertNotEmpty($autoload['anton']);
|
||||
$this->assertNotEmpty(Load::getFilePath('anton'));
|
||||
}
|
||||
|
||||
public static function tearDownAfterClass()
|
||||
|
@ -19,6 +19,7 @@ class RegistryTest extends PHPUnit_Framework_TestCase
|
||||
|
||||
public function setUp()
|
||||
{
|
||||
$this->assertFalse(Registry::isRegistered(10));
|
||||
$this->_registry = Registry::getInstance();
|
||||
}
|
||||
|
||||
|
@ -64,7 +64,8 @@ class AutoloadBuilderTest extends PHPUnit_Framework_TestCase
|
||||
|
||||
$builder->build();
|
||||
}
|
||||
|
||||
|
||||
|
||||
public function testAutoloadFileExists()
|
||||
{
|
||||
$this->assertFileExists(self::$file);
|
||||
|
Reference in New Issue
Block a user