public function RequestMatcherTest::testPathWithLocaleIsNotSupported

File

drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/Tests/RequestMatcherTest.php, line 144

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