You are here

public function IdentityTranslatorTest::testTransChoiceWithExplicitLocale in Plug 7

@dataProvider getTransChoiceTests

File

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

Class

IdentityTranslatorTest

Namespace

Symfony\Component\Translation\Tests

Code

public function testTransChoiceWithExplicitLocale($expected, $id, $number, $parameters) {
  $translator = new IdentityTranslator();
  $translator
    ->setLocale('en');
  $this
    ->assertEquals($expected, $translator
    ->transChoice($id, $number, $parameters));
}