@@ -117,15 +117,15 @@ public function testGetLocaleReturnsDefaultLocaleIfNotSet()
117
117
$ this ->assertEquals ('en ' , $ translator ->getLocale ());
118
118
}
119
119
120
- public function getTransTests ()
120
+ public static function getTransTests ()
121
121
{
122
122
return [
123
123
['Symfony is great! ' , 'Symfony is great! ' , []],
124
124
['Symfony is awesome! ' , 'Symfony is %what%! ' , ['%what% ' => 'awesome ' ]],
125
125
];
126
126
}
127
127
128
- public function getTransChoiceTests ()
128
+ public static function getTransChoiceTests ()
129
129
{
130
130
return [
131
131
['There are no apples ' , '{0} There are no apples|{1} There is one apple|]1,Inf] There are %count% apples ' , 0 ],
@@ -149,7 +149,7 @@ public function testInterval($expected, $number, $interval)
149
149
$ this ->assertEquals ($ expected , $ translator ->trans ($ interval .' foo|[1,Inf[ bar ' , ['%count% ' => $ number ]));
150
150
}
151
151
152
- public function getInterval ()
152
+ public static function getInterval ()
153
153
{
154
154
return [
155
155
['foo ' , 3 , '{1,2, 3 ,4} ' ],
@@ -192,7 +192,7 @@ public function testThrowExceptionIfMatchingMessageCannotBeFound($id, $number)
192
192
$ translator ->trans ($ id , ['%count% ' => $ number ]);
193
193
}
194
194
195
- public function getNonMatchingMessages ()
195
+ public static function getNonMatchingMessages ()
196
196
{
197
197
return [
198
198
['{0} There are no apples|{1} There is one apple ' , 2 ],
@@ -202,7 +202,7 @@ public function getNonMatchingMessages()
202
202
];
203
203
}
204
204
205
- public function getChooseTests ()
205
+ public static function getChooseTests ()
206
206
{
207
207
return [
208
208
['There are no apples ' , '{0} There are no apples|{1} There is one apple|]1,Inf] There are %count% apples ' , 0 ],
@@ -320,7 +320,7 @@ public function testLangcodes($nplural, $langCodes)
320
320
*
321
321
* @return array
322
322
*/
323
- public function successLangcodes ()
323
+ public static function successLangcodes ()
324
324
{
325
325
return [
326
326
['1 ' , ['ay ' , 'bo ' , 'cgg ' , 'dz ' , 'id ' , 'ja ' , 'jbo ' , 'ka ' , 'kk ' , 'km ' , 'ko ' , 'ky ' ]],
@@ -339,7 +339,7 @@ public function successLangcodes()
339
339
*
340
340
* @return array with nplural together with langcodes
341
341
*/
342
- public function failingLangcodes ()
342
+ public static function failingLangcodes ()
343
343
{
344
344
return [
345
345
['1 ' , ['fa ' ]],
0 commit comments