/** * @expectedException RuntimeException */ public function testThrowsWhenNotEnoughParamsPassedToUrl() { $router = new Router(); $router->attach('foo', '/foo/{id}', 'SimpleController::indexAction'); $router->gentUrl('foo'); }