replace Exception on PHPUnit_Framework_Error

This commit is contained in:
Vyacheslav Agafonov
2011-11-24 19:12:53 +04:00
parent 25ba2abf54
commit bdae057a8e
2 changed files with 4 additions and 3 deletions

View File

@ -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;
} }

View File

@ -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()
{ {