Browse Source

replacement @expectedException to setExpectedException

master
Vyacheslav Agafonov 13 years ago
parent
commit
3470e3254f
  1. 2
      tests/app/router/RouteTest.php

2
tests/app/router/RouteTest.php

@ -69,11 +69,11 @@ class RouteTest extends PHPUnit_Framework_TestCase
}
/**
* @expectedException PHPUnit_Framework_Error
* @TODO Need check empty parameters from constructor Route
*/
public function testMatchEmptyRequest()
{
$this->setExpectedException('PHPUnit_Framework_Error');
$route = new Route('', 'user', array('name' => 'tony', 'role' => 'user'));
$route->match('');
}
Loading…
Cancel
Save