Moving setExpectedException
This commit is contained in:
@ -73,8 +73,8 @@ class RouteTest extends PHPUnit_Framework_TestCase
|
||||
*/
|
||||
public function testMatchEmptyRequest()
|
||||
{
|
||||
$this->setExpectedException('PHPUnit_Framework_Error');
|
||||
$route = new Route('', 'user', array('name' => 'tony', 'role' => 'user'));
|
||||
$this->setExpectedException('PHPUnit_Framework_Error');
|
||||
$route->match('');
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user