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