public function TranslatorTest::testGetCatalogue in Plug 7
File
- lib/
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'));
}