@@ -114,15 +114,15 @@ public function testGetLocaleReturnsDefaultLocaleIfNotSet()
114
114
$ this ->assertEquals ('en ' , $ translator ->getLocale ());
115
115
}
116
116
117
- public function getTransTests ()
117
+ public static function getTransTests ()
118
118
{
119
119
return [
120
120
['Symfony is great! ' , 'Symfony is great! ' , []],
121
121
['Symfony is awesome! ' , 'Symfony is %what%! ' , ['%what% ' => 'awesome ' ]],
122
122
];
123
123
}
124
124
125
- public function getTransChoiceTests ()
125
+ public static function getTransChoiceTests ()
126
126
{
127
127
return [
128
128
['There are no apples ' , '{0} There are no apples|{1} There is one apple|]1,Inf] There are %count% apples ' , 0 ],
@@ -146,7 +146,7 @@ public function testInterval($expected, $number, $interval)
146
146
$ this ->assertEquals ($ expected , $ translator ->trans ($ interval .' foo|[1,Inf[ bar ' , ['%count% ' => $ number ]));
147
147
}
148
148
149
- public function getInterval ()
149
+ public static function getInterval ()
150
150
{
151
151
return [
152
152
['foo ' , 3 , '{1,2, 3 ,4} ' ],
@@ -189,7 +189,7 @@ public function testThrowExceptionIfMatchingMessageCannotBeFound($id, $number)
189
189
$ translator ->trans ($ id , ['%count% ' => $ number ]);
190
190
}
191
191
192
- public function getNonMatchingMessages ()
192
+ public static function getNonMatchingMessages ()
193
193
{
194
194
return [
195
195
['{0} There are no apples|{1} There is one apple ' , 2 ],
@@ -199,7 +199,7 @@ public function getNonMatchingMessages()
199
199
];
200
200
}
201
201
202
- public function getChooseTests ()
202
+ public static function getChooseTests ()
203
203
{
204
204
return [
205
205
['There are no apples ' , '{0} There are no apples|{1} There is one apple|]1,Inf] There are %count% apples ' , 0 ],
@@ -315,7 +315,7 @@ public function testLangcodes($nplural, $langCodes)
315
315
*
316
316
* As it is impossible to have this ever complete we should try as hard as possible to have it almost complete.
317
317
*/
318
- public function successLangcodes (): array
318
+ public static function successLangcodes (): array
319
319
{
320
320
return [
321
321
['1 ' , ['ay ' , 'bo ' , 'cgg ' , 'dz ' , 'id ' , 'ja ' , 'jbo ' , 'ka ' , 'kk ' , 'km ' , 'ko ' , 'ky ' ]],
@@ -334,7 +334,7 @@ public function successLangcodes(): array
334
334
*
335
335
* @return array with nplural together with langcodes
336
336
*/
337
- public function failingLangcodes (): array
337
+ public static function failingLangcodes (): array
338
338
{
339
339
return [
340
340
['1 ' , ['fa ' ]],
0 commit comments