Browse Source

Run Some test in separate process to avoid autoload problems

master
Anton Terekhov 13 years ago
parent
commit
4af6dcd7db
  1. 8
      tests/LoadTest.php

8
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);

Loading…
Cancel
Save