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