replacement @expectedException to setExpectedException
This commit is contained in:
@ -69,11 +69,11 @@ class RouteTest extends PHPUnit_Framework_TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @expectedException PHPUnit_Framework_Error
|
|
||||||
* @TODO Need check empty parameters from constructor Route
|
* @TODO Need check empty parameters from constructor Route
|
||||||
*/
|
*/
|
||||||
public function testMatchEmptyRequest()
|
public function testMatchEmptyRequest()
|
||||||
{
|
{
|
||||||
|
$this->setExpectedException('PHPUnit_Framework_Error');
|
||||||
$route = new Route('', 'user', array('name' => 'tony', 'role' => 'user'));
|
$route = new Route('', 'user', array('name' => 'tony', 'role' => 'user'));
|
||||||
$route->match('');
|
$route->match('');
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user