You are here

public function TranslatorTest::testGetCatalogue in Plug 7

File

lib/Symfony/translation/Tests/TranslatorTest.php, line 78

Class

TranslatorTest

Namespace

Symfony\Component\Translation\Tests

Code

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'));
}