added getter and setter to Router to use error layout
This commit is contained in:
@ -106,4 +106,17 @@ class RouterTest extends PHPUnit_Framework_TestCase
|
||||
$this->assertTrue($router->routeIsExists($name));
|
||||
$this->assertFalse($router->routeIsExists($name_is_not_exists));
|
||||
}
|
||||
|
||||
public function testGetDefaultErrorLayout()
|
||||
{
|
||||
$router = new Router();
|
||||
$this->assertSame('ErrorLayout', $router->getErrorLayout());
|
||||
}
|
||||
|
||||
public function testSetErrorLayout()
|
||||
{
|
||||
$router = new Router();
|
||||
$router->setErrorLayout('CustomError');
|
||||
$this->assertSame('CustomErrorLayout', $router->getErrorLayout());
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user