replace Exception on PHPUnit_Framework_Error
This commit is contained in:
@ -32,7 +32,6 @@ class Route
|
|||||||
{
|
{
|
||||||
$parts = explode('/', $this->route);
|
$parts = explode('/', $this->route);
|
||||||
$cnt = count($parts);
|
$cnt = count($parts);
|
||||||
|
|
||||||
if(count($request) != $cnt) {
|
if(count($request) != $cnt) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -52,6 +51,7 @@ class Route
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -69,7 +69,8 @@ class RouteTest extends PHPUnit_Framework_TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @expectedException Exception
|
* @expectedException PHPUnit_Framework_Error
|
||||||
|
* @TODO Need check empty parameters from constructor Route
|
||||||
*/
|
*/
|
||||||
public function testMatchEmptyRequest()
|
public function testMatchEmptyRequest()
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user