better coverage

This commit is contained in:
Anton Grebnev
2011-10-06 19:19:40 +04:00
parent 588ef93bb3
commit 3c3071fb15
4 changed files with 6 additions and 3 deletions

View File

@ -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));
} }
} }

View File

@ -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()

View File

@ -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();
} }

View File

@ -64,7 +64,8 @@ class AutoloadBuilderTest extends PHPUnit_Framework_TestCase
$builder->build(); $builder->build();
} }
public function testAutoloadFileExists() public function testAutoloadFileExists()
{ {
$this->assertFileExists(self::$file); $this->assertFileExists(self::$file);