You are here

public function TranslatorTest::testTransChoiceInvalidLocale 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::testTransChoiceInvalidLocale()

@dataProvider getInvalidLocalesTests @expectedException \InvalidArgumentException

File

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

Class

TranslatorTest

Namespace

Symfony\Component\Translation\Tests

Code

public function testTransChoiceInvalidLocale($locale) {
  $translator = new Translator('en', new MessageSelector());
  $translator
    ->addLoader('array', new ArrayLoader());
  $translator
    ->addResource('array', array(
    'foo' => 'foofoo',
  ), 'en');
  $translator
    ->transChoice('foo', 1, array(), '', $locale);
}