You are here

public function TranslatorTest::testConstructorValidLocale in Plug 7

@dataProvider getValidLocalesTests

File

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

Class

TranslatorTest

Namespace

Symfony\Component\Translation\Tests

Code

public function testConstructorValidLocale($locale) {
  $translator = new Translator($locale, new MessageSelector());
  $this
    ->assertEquals($locale, $translator
    ->getLocale());
}