You are here

public function RequestMatcherTest::testPathWithLocaleIsNotSupported 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::testPathWithLocaleIsNotSupported()

File

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

Class

RequestMatcherTest

Namespace

Symfony\Component\HttpFoundation\Tests

Code

public function testPathWithLocaleIsNotSupported() {
  $matcher = new RequestMatcher();
  $request = Request::create('/en/login');
  $request
    ->setLocale('en');
  $matcher
    ->matchPath('^/{_locale}/login$');
  $this
    ->assertFalse($matcher
    ->matches($request));
}