You are here

public function IdentityTranslatorTest::testTransChoiceWithDefaultLocale in Plug 7

@dataProvider getTransChoiceTests

File

lib/Symfony/translation/Tests/IdentityTranslatorTest.php, line 43

Class

IdentityTranslatorTest

Namespace

Symfony\Component\Translation\Tests

Code

public function testTransChoiceWithDefaultLocale($expected, $id, $number, $parameters) {
  \Locale::setDefault('en');
  $translator = new IdentityTranslator();
  $this
    ->assertEquals($expected, $translator
    ->transChoice($id, $number, $parameters));
}