public function TranslatorTest::getTransChoiceTests in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony/translation/Tests/TranslatorTest.php \Symfony\Component\Translation\Tests\TranslatorTest::getTransChoiceTests()
File
- vendor/
symfony/ translation/ Tests/ TranslatorTest.php, line 411
Class
Namespace
Symfony\Component\Translation\TestsCode
public function getTransChoiceTests() {
return array(
array(
'Il y a 0 pomme',
'{0} There are no appless|{1} There is one apple|]1,Inf] There is %count% apples',
'[0,1] Il y a %count% pomme|]1,Inf] Il y a %count% pommes',
0,
array(
'%count%' => 0,
),
'fr',
'',
),
array(
'Il y a 1 pomme',
'{0} There are no appless|{1} There is one apple|]1,Inf] There is %count% apples',
'[0,1] Il y a %count% pomme|]1,Inf] Il y a %count% pommes',
1,
array(
'%count%' => 1,
),
'fr',
'',
),
array(
'Il y a 10 pommes',
'{0} There are no appless|{1} There is one apple|]1,Inf] There is %count% apples',
'[0,1] Il y a %count% pomme|]1,Inf] Il y a %count% pommes',
10,
array(
'%count%' => 10,
),
'fr',
'',
),
array(
'Il y a 0 pomme',
'There is one apple|There is %count% apples',
'Il y a %count% pomme|Il y a %count% pommes',
0,
array(
'%count%' => 0,
),
'fr',
'',
),
array(
'Il y a 1 pomme',
'There is one apple|There is %count% apples',
'Il y a %count% pomme|Il y a %count% pommes',
1,
array(
'%count%' => 1,
),
'fr',
'',
),
array(
'Il y a 10 pommes',
'There is one apple|There is %count% apples',
'Il y a %count% pomme|Il y a %count% pommes',
10,
array(
'%count%' => 10,
),
'fr',
'',
),
array(
'Il y a 0 pomme',
'one: There is one apple|more: There is %count% apples',
'one: Il y a %count% pomme|more: Il y a %count% pommes',
0,
array(
'%count%' => 0,
),
'fr',
'',
),
array(
'Il y a 1 pomme',
'one: There is one apple|more: There is %count% apples',
'one: Il y a %count% pomme|more: Il y a %count% pommes',
1,
array(
'%count%' => 1,
),
'fr',
'',
),
array(
'Il y a 10 pommes',
'one: There is one apple|more: There is %count% apples',
'one: Il y a %count% pomme|more: Il y a %count% pommes',
10,
array(
'%count%' => 10,
),
'fr',
'',
),
array(
'Il n\'y a aucune pomme',
'{0} There are no apples|one: There is one apple|more: There is %count% apples',
'{0} Il n\'y a aucune pomme|one: Il y a %count% pomme|more: Il y a %count% pommes',
0,
array(
'%count%' => 0,
),
'fr',
'',
),
array(
'Il y a 1 pomme',
'{0} There are no apples|one: There is one apple|more: There is %count% apples',
'{0} Il n\'y a aucune pomme|one: Il y a %count% pomme|more: Il y a %count% pommes',
1,
array(
'%count%' => 1,
),
'fr',
'',
),
array(
'Il y a 10 pommes',
'{0} There are no apples|one: There is one apple|more: There is %count% apples',
'{0} Il n\'y a aucune pomme|one: Il y a %count% pomme|more: Il y a %count% pommes',
10,
array(
'%count%' => 10,
),
'fr',
'',
),
array(
'Il y a 0 pomme',
new StringClass('{0} There are no appless|{1} There is one apple|]1,Inf] There is %count% apples'),
'[0,1] Il y a %count% pomme|]1,Inf] Il y a %count% pommes',
0,
array(
'%count%' => 0,
),
'fr',
'',
),
);
}