/** * This test should throw an exception because, although parameter names are different, their patterns are identical * * @expectedException \InvalidArgumentException */ public function testThatDynamicPatternsCanOnlyBeAssignedOnce() { $router = new Router(); $router->post('path/{id}'); $router->post('path/{notid}'); }