You are here

public function RequestMatcherTest::testPathWithEncodedCharacters in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/http-foundation/Tests/RequestMatcherTest.php \Symfony\Component\HttpFoundation\Tests\RequestMatcherTest::testPathWithEncodedCharacters()

File

vendor/symfony/http-foundation/Tests/RequestMatcherTest.php, line 123

Class

RequestMatcherTest

Namespace

Symfony\Component\HttpFoundation\Tests

Code

public function testPathWithEncodedCharacters() {
  $matcher = new RequestMatcher();
  $request = Request::create('/admin/fo%20o');
  $matcher
    ->matchPath('^/admin/fo o*$');
  $this
    ->assertTrue($matcher
    ->matches($request));
}