Fixed test error for testDebugAutoload() with coverage

This commit is contained in:
Anton Terekhov
2012-12-11 18:45:48 +04:00
parent 98324588b7
commit fce43da00d
4 changed files with 13 additions and 11 deletions

View File

@ -36,7 +36,6 @@ class LoadTest extends PHPUnit_Framework_TestCase
/**
* @TODO: Load->buildAutoload() should recieve AutoloadBuilder as a parameter
* @TODO: Load->buildAutoload() - uses two paths - PATH . '/' . APP . '/src' and PATH . '/lib' those are not checked. Can cause error.
*/
public function setUp()
{
@ -113,7 +112,6 @@ class LoadTest extends PHPUnit_Framework_TestCase
/**
* @runInSeparateProcess
* @TODO: Load - check if input file returns array
*/
public function testFileForArray()
{
@ -142,7 +140,6 @@ class LoadTest extends PHPUnit_Framework_TestCase
}
/**
* @TODO: Load::getFilePath - check for wrong index
* @runInSeparateProcess
*/
public function testAutoloadGetFilePathNullIndex()
@ -160,6 +157,7 @@ class LoadTest extends PHPUnit_Framework_TestCase
public function testDebugAutoload()
{
$this->setConstants();
unlink(self::$file);
Load::setAutoloadFrom(self::$file);
$autoload = require(self::$file);