public function TranslatorTest::testTransChoice in Plug 7
@dataProvider getTransChoiceTests
File
- lib/Symfony/ translation/ Tests/ TranslatorTest.php, line 329 
Class
Namespace
Symfony\Component\Translation\TestsCode
public function testTransChoice($expected, $id, $translation, $number, $parameters, $locale, $domain) {
  $translator = new Translator('en');
  $translator
    ->addLoader('array', new ArrayLoader());
  $translator
    ->addResource('array', array(
    (string) $id => $translation,
  ), $locale, $domain);
  $this
    ->assertEquals($expected, $translator
    ->transChoice($id, $number, $parameters, $domain, $locale));
}