public function testGenerateForRouteWithInvalidOptionalParameterNonStrict() {
$routes = $this
->getRoutes('test', new Route('/testing/{foo}', array(
'foo' => '1',
), array(
'foo' => 'd+',
)));
$generator = $this
->getGenerator($routes);
$generator
->setStrictRequirements(false);
$this
->assertNull($generator
->generate('test', array(
'foo' => 'bar',
), true));
}