@ -10,7 +10,7 @@
* Unit tests for Load class
*/
require dirname(__FILE__) . '/../Load.php';
require_once dirname(__FILE__) . '/../Load.php';
require_once 'vfsStream/vfsStream.php';
class LoadTest extends PHPUnit_Framework_TestCase
@ -5,9 +5,9 @@
* @link http://netmonsters.ru
* @package Majestic
* @subpackage UnitTests
* @since 2011-10-11
* @since 2011-10-31
*
* Unit tests for Route class
* Unit tests for Router class
require_once dirname(__FILE__) . '/../../../app/router/Route.php';
@ -111,4 +111,12 @@ class EnvTest extends PHPUnit_Framework_TestCase
$this->assertEquals('grebnev', Env::getParam('surname'));
}
public function tearDown()
{
$env = new ReflectionClass('Env');
$params = $env->getProperty('params');
$params->setAccessible(true);
$params->setValue('Env', array());
@ -31,7 +31,7 @@ class LayoutTest extends PHPUnit_Framework_TestCase
if (!class_exists('RouterMock')) {
$this->getMock('Router', array(), array(), 'RouterMock', false);
if (!class_exists('PHPView')) {
if (!class_exists('PHPViewMock')) {
$this->getMock('PHPView', array('fetch', 'append', 'prepend', 'assign', 'getTemplate'), array(), 'PHPViewMock', false);