public function UrlMatcherTest::testMatchSpecialRouteName

File

drupal/core/vendor/symfony/routing/Symfony/Component/Routing/Tests/Matcher/UrlMatcherTest.php, line 153

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'));
}