You are here

public function TranslatorTest::testSetFallbackInvalidLocales in Plug 7

@dataProvider getInvalidLocalesTests @expectedException \InvalidArgumentException

File

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

Class

TranslatorTest

Namespace

Symfony\Component\Translation\Tests

Code

public function testSetFallbackInvalidLocales($locale) {
  $translator = new Translator('fr', new MessageSelector());
  $translator
    ->setFallbackLocales(array(
    'fr',
    $locale,
  ));
}