You are here

public function TranslatorTest::testAddResourceValidLocales in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/translation/Tests/TranslatorTest.php \Symfony\Component\Translation\Tests\TranslatorTest::testAddResourceValidLocales()

@dataProvider getValidLocalesTests

File

vendor/symfony/translation/Tests/TranslatorTest.php, line 184

Class

TranslatorTest

Namespace

Symfony\Component\Translation\Tests

Code

public function testAddResourceValidLocales($locale) {
  $translator = new Translator('fr', new MessageSelector());
  $translator
    ->addResource('array', array(
    'foo' => 'foofoo',
  ), $locale);

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