public function TranslatorTest::testTransChoiceValidLocale in Plug 7
@dataProvider getValidLocalesTests
File
- lib/
Symfony/ translation/ Tests/ TranslatorTest.php, line 354
Class
Namespace
Symfony\Component\Translation\TestsCode
public function testTransChoiceValidLocale($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);
// no assertion. this method just asserts that no exception is thrown
}