You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
minor symfony#14087 [Translator] fix test for php 7 compatibility (Tobion)
This PR was merged into the 2.3 branch.
Discussion
----------
[Translator] fix test for php 7 compatibility
| Q | A
| ------------- | ---
| Bug fix? | yes
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets | symfony#14086 for Translation component
| License | MIT
| Doc PR | -
Commits
-------
02b829f [Translator] fix test for php 7 compatibility
Copy file name to clipboardExpand all lines: src/Symfony/Component/Translation/Tests/TranslatorTest.php
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -346,7 +346,7 @@ public function getTransTests()
346
346
returnarray(
347
347
array('Symfony est super !', 'Symfony is great!', 'Symfony est super !', array(), 'fr', ''),
348
348
array('Symfony est awesome !', 'Symfony is %what%!', 'Symfony est %what% !', array('%what%' => 'awesome'), 'fr', ''),
349
-
array('Symfony est super !', newString('Symfony is great!'), 'Symfony est super !', array(), 'fr', ''),
349
+
array('Symfony est super !', newStringClass('Symfony is great!'), 'Symfony est super !', array(), 'fr', ''),
350
350
);
351
351
}
352
352
@@ -392,7 +392,7 @@ public function getTransChoiceTests()
392
392
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', ''),
393
393
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', ''),
394
394
395
-
array('Il y a 0 pomme', newString('{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', ''),
395
+
array('Il y a 0 pomme', newStringClass('{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', ''),
396
396
);
397
397
}
398
398
@@ -462,7 +462,7 @@ public function testTransChoiceFallbackWithNoTranslation()
0 commit comments