public function TranslatorTest::testTransChoiceValidLocale in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony/translation/Tests/TranslatorTest.php \Symfony\Component\Translation\Tests\TranslatorTest::testTransChoiceValidLocale()
@dataProvider getValidLocalesTests
File
- vendor/
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
}