You are here

public function UrlMatcherTest::testMatchSpecialRouteName in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/routing/Tests/Matcher/UrlMatcherTest.php \Symfony\Component\Routing\Tests\Matcher\UrlMatcherTest::testMatchSpecialRouteName()

File

vendor/symfony/routing/Tests/Matcher/UrlMatcherTest.php, line 155

Class

UrlMatcherTest

Namespace

Symfony\Component\Routing\Tests\Matcher

Code

public function testMatchSpecialRouteName() {
  $collection = new RouteCollection();
  $collection
    ->add('$péß^a|', new Route('/bar'));
  $matcher = new UrlMatcher($collection, new RequestContext());
  $this
    ->assertEquals(array(
    '_route' => '$péß^a|',
  ), $matcher
    ->match('/bar'));
}