public function TranslatorTest::testSetGetLocale in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony/translation/Tests/TranslatorTest.php \Symfony\Component\Translation\Tests\TranslatorTest::testSetGetLocale()
File
- vendor/
symfony/ translation/ Tests/ TranslatorTest.php, line 47
Class
Namespace
Symfony\Component\Translation\TestsCode
public function testSetGetLocale() {
$translator = new Translator('en');
$this
->assertEquals('en', $translator
->getLocale());
$translator
->setLocale('fr');
$this
->assertEquals('fr', $translator
->getLocale());
}