public function testMatchWithDotMetacharacterInRequirements() {
$collection = new RouteCollection();
$collection
->add('foo', new Route('/{foo}/bar', array(), array(
'foo' => '.+',
)));
$matcher = new UrlMatcher($collection, new RequestContext());
$this
->assertEquals(array(
'_route' => 'foo',
'foo' => "\n",
), $matcher
->match('/' . urlencode("\n") . '/bar'), 'linefeed character is matched');
}