public function IdentityTranslatorTest::testTransChoiceWithDefaultLocale in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/translation/Tests/IdentityTranslatorTest.php \Symfony\Component\Translation\Tests\IdentityTranslatorTest::testTransChoiceWithDefaultLocale()
@dataProvider getTransChoiceTests
File
- vendor/
symfony/ translation/ Tests/ IdentityTranslatorTest.php, line 43
Class
Namespace
Symfony\Component\Translation\TestsCode
public function testTransChoiceWithDefaultLocale($expected, $id, $number, $parameters) {
\Locale::setDefault('en');
$translator = new IdentityTranslator();
$this
->assertEquals($expected, $translator
->transChoice($id, $number, $parameters));
}