You are here

public function TranslatorTest::testSetFallbackValidLocales in Plug 7

@dataProvider getValidLocalesTests

File

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

Class

TranslatorTest

Namespace

Symfony\Component\Translation\Tests

Code

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

  // no assertion. this method just asserts that no exception is thrown
}