public function TranslatorTest::testTransChoiceInvalidLocale in Plug 7
@dataProvider getInvalidLocalesTests @expectedException \InvalidArgumentException
File
- lib/
Symfony/ translation/ Tests/ TranslatorTest.php, line 342
Class
Namespace
Symfony\Component\Translation\TestsCode
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);
}