public function TranslatorTest::testAddResourceValidLocales in Plug 7
@dataProvider getValidLocalesTests
File
- lib/
Symfony/ translation/ Tests/ TranslatorTest.php, line 184
Class
Namespace
Symfony\Component\Translation\TestsCode
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
}