function TranslatorTest::testTransChoiceWithExplicitLocale
@dataProvider getTransChoiceTests
File
-
vendor/
symfony/ translation-contracts/ Test/ TranslatorTest.php, line 66
Class
- TranslatorTest
- Test should cover all languages mentioned on http://translate.sourceforge.net/wiki/l10n/pluralforms and Plural forms mentioned on http://www.gnu.org/software/gettext/manual/gettext.html#Plural-forms.
Namespace
Symfony\Contracts\Translation\TestCode
public function testTransChoiceWithExplicitLocale($expected, $id, $number) {
$translator = $this->getTranslator();
$this->assertEquals($expected, $translator->trans($id, [
'%count%' => $number,
]));
}