public function UrlMatcherTest::testDecodeOnce

File

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

Class

UrlMatcherTest

Namespace

Symfony\Component\Routing\Tests\Matcher

Code

public function testDecodeOnce() {
  $coll = new RouteCollection();
  $coll
    ->add('foo', new Route('/foo/{foo}'));
  $matcher = new UrlMatcher($coll, new RequestContext());
  $this
    ->assertEquals(array(
    'foo' => 'bar%23',
    '_route' => 'foo',
  ), $matcher
    ->match('/foo/bar%2523'));
}