public function RequestTest::testSetDefaultLocale in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/http-foundation/Tests/RequestTest.php \Symfony\Component\HttpFoundation\Tests\RequestTest::testSetDefaultLocale()
File
- vendor/
symfony/ http-foundation/ Tests/ RequestTest.php, line 88
Class
Namespace
Symfony\Component\HttpFoundation\TestsCode
public function testSetDefaultLocale() {
$request = new Request();
$request
->setDefaultLocale('pl');
$locale = $request
->getLocale();
$this
->assertEquals('pl', $locale);
}