@expectedException \Symfony\Component\Routing\Exception\InvalidParameterException
public function testGenerateForRouteWithInvalidParameter() {
$routes = $this
->getRoutes('test', new Route('/testing/{foo}', array(), array(
'foo' => '1|2',
)));
$this
->getGenerator($routes)
->generate('test', array(
'foo' => '0',
), true);
}