You are here

public function IdentityTranslatorTest::testGetSetLocale in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/translation/Tests/IdentityTranslatorTest.php \Symfony\Component\Translation\Tests\IdentityTranslatorTest::testGetSetLocale()

File

vendor/symfony/translation/Tests/IdentityTranslatorTest.php, line 52

Class

IdentityTranslatorTest

Namespace

Symfony\Component\Translation\Tests

Code

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