public function TranslatorTest::testTransInvalidLocale in Plug 7
@dataProvider getInvalidLocalesTests @expectedException \InvalidArgumentException
File
- lib/
Symfony/ translation/ Tests/ TranslatorTest.php, line 292
Class
Namespace
Symfony\Component\Translation\TestsCode
public function testTransInvalidLocale($locale) {
$translator = new Translator('en', new MessageSelector());
$translator
->addLoader('array', new ArrayLoader());
$translator
->addResource('array', array(
'foo' => 'foofoo',
), 'en');
$translator
->trans('foo', array(), '', $locale);
}