public function UrlMatcherTest::testMatchWithDotMetacharacterInRequirements in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/routing/Tests/Matcher/UrlMatcherTest.php \Symfony\Component\Routing\Tests\Matcher\UrlMatcherTest::testMatchWithDotMetacharacterInRequirements()
File
- vendor/
symfony/ routing/ Tests/ Matcher/ UrlMatcherTest.php, line 175
Class
Namespace
Symfony\Component\Routing\Tests\MatcherCode
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');
}