You are here

public function TranslatorTest::testSetGetLocale in Plug 7

File

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

Class

TranslatorTest

Namespace

Symfony\Component\Translation\Tests

Code

public function testSetGetLocale() {
  $translator = new Translator('en');
  $this
    ->assertEquals('en', $translator
    ->getLocale());
  $translator
    ->setLocale('fr');
  $this
    ->assertEquals('fr', $translator
    ->getLocale());
}