You are here

public function UrlMatcherTest::testDecodeOnce 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::testDecodeOnce()

File

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

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