/** * @group single */ public function testReverseRoutingThrowsExceptionWithBadParamTypes() { $map = ['path/(:any)/to/(:num)' => 'myController::goto/$1/$2']; $collection = new RouteCollection(); $collection->map($map); $this->setExpectedException('LogicException'); $match = $collection->reverseRoute('myController::goto', 13, 'string'); }