Run Some test in separate process to avoid autoload problems
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user