replace Exception on PHPUnit_Framework_Error
This commit is contained in:
@ -32,11 +32,10 @@ class Route
|
||||
{
|
||||
$parts = explode('/', $this->route);
|
||||
$cnt = count($parts);
|
||||
|
||||
if(count($request) != $cnt) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
for ($i = 0; $i < $cnt; $i++) {
|
||||
if (substr($parts[$i], 0, 1) == ':') {
|
||||
$this->params[substr($parts[$i], 1)] = urldecode($request[$i]);
|
||||
@ -52,6 +51,7 @@ class Route
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user