public function RequestMatcherTest::testPathWithLocaleIsNotSupported in Zircon Profile 8
Same name and namespace in other branches
- 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
Namespace
Symfony\Component\HttpFoundation\TestsCode
public function testPathWithLocaleIsNotSupported() {
$matcher = new RequestMatcher();
$request = Request::create('/en/login');
$request
->setLocale('en');
$matcher
->matchPath('^/{_locale}/login$');
$this
->assertFalse($matcher
->matches($request));
}