|
|
@ -44,7 +44,7 @@ class FrontControllerTest extends PHPUnit_Framework_TestCase |
|
|
|
$this->getMock('View'); |
|
|
|
} |
|
|
|
if (!class_exists('ErrorLayout')) { |
|
|
|
$this->getMock('ErrorLayout', array('fetch'), array(), 'ErrorLayoutMock'); |
|
|
|
$this->getMock('ErrorLayout', array('fetch', 'setException'), array(), 'ErrorLayoutMock'); |
|
|
|
} |
|
|
|
if (!class_exists('ErrorActionMock')) { |
|
|
|
$this->getMock('ErrorAction', array(), array(), 'ErrorActionMock', false); |
|
|
@ -190,7 +190,7 @@ class FrontControllerTest extends PHPUnit_Framework_TestCase |
|
|
|
$router = $controller->getRouter(); |
|
|
|
$router->add('user', 'user/account/:id', 'user'); |
|
|
|
$result = $controller->execute(); |
|
|
|
$this->assertEmpty($result); |
|
|
|
$this->assertNull($result); |
|
|
|
} |
|
|
|
/** |
|
|
|
* @runInSeparateProcess |
|
|
@ -205,7 +205,7 @@ class FrontControllerTest extends PHPUnit_Framework_TestCase |
|
|
|
$router = $controller->getRouter(); |
|
|
|
$router->add('user', 'user/account/:id', 'NewAjax'); |
|
|
|
$result = $controller->execute(); |
|
|
|
$this->assertEmpty($result); |
|
|
|
$this->assertNull($result); |
|
|
|
} |
|
|
|
|
|
|
|
private function setConstants($val = false) |
|
|
@ -227,8 +227,6 @@ class FrontControllerTest extends PHPUnit_Framework_TestCase |
|
|
|
return 'PHPViewMock'; |
|
|
|
case 'DefaultLayout': |
|
|
|
return 'DefaultLayoutMock'; |
|
|
|
case 'userAction': |
|
|
|
return 'userAction'; |
|
|
|
case 'ErrorAction': |
|
|
|
return 'ErrorActionMock'; |
|
|
|
case 'ErrorLayout': |
|
|
|