Run Some test in separate process to avoid autoload problems

This commit is contained in:
Anton Terekhov
2011-11-28 14:36:45 +04:00
parent 443655064c
commit 4af6dcd7db

View File

@ -6,7 +6,7 @@
* @package Majestic
* @subpackage UnitTests
* @since 2011-10-..
*
*
* Unit tests for Load class
*/
@ -31,7 +31,7 @@ class LoadTest extends PHPUnit_Framework_TestCase
$this->setPreserveGlobalState(false);
return parent::run($result);
}
/**
* @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.
@ -109,6 +109,7 @@ class LoadTest extends PHPUnit_Framework_TestCase
}
/**
* @runInSeparateProcess
* @TODO: Load - check if input file returns array
*/
public function testFileForArray()
@ -117,6 +118,9 @@ class LoadTest extends PHPUnit_Framework_TestCase
$this->assertInternalType('array', $autoload);
}
/**
* @runInSeparateProcess
*/
public function testAutoloadArrayNotEmpty()
{
$autoload = require(self::$file);