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