From 4af6dcd7dbaeb04714623339ddf6c702afca0378 Mon Sep 17 00:00:00 2001 From: Anton Terekhov Date: Mon, 28 Nov 2011 14:36:45 +0400 Subject: [PATCH] Run Some test in separate process to avoid autoload problems --- tests/LoadTest.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tests/LoadTest.php b/tests/LoadTest.php index f3296e2..dba9086 100644 --- a/tests/LoadTest.php +++ b/tests/LoadTest.php @@ -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);