function TranslatorTest::testTransChoiceWithEnUsPosix
@dataProvider getTransChoiceTests
File
-
vendor/
symfony/ translation-contracts/ Test/ TranslatorTest.php, line 88
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 testTransChoiceWithEnUsPosix($expected, $id, $number) {
$translator = $this->getTranslator();
$translator->setLocale('en_US_POSIX');
$this->assertEquals($expected, $translator->trans($id, [
'%count%' => $number,
]));
}