@@ -19,47 +19,47 @@ class Php84Test extends TestCase
19
19
/**
20
20
* @dataProvider ucFirstDataProvider
21
21
*/
22
- public function testMbUcFirst (string $ string , string $ expected ): void
22
+ public function testMbUcFirst (string $ string , string $ expected )
23
23
{
24
24
$ this ->assertSame ($ expected , mb_ucfirst ($ string ));
25
25
}
26
26
27
27
/**
28
28
* @dataProvider lcFirstDataProvider
29
29
*/
30
- public function testMbLcFirst (string $ string , string $ expected ): void
30
+ public function testMbLcFirst (string $ string , string $ expected )
31
31
{
32
32
$ this ->assertSame ($ expected , mb_lcfirst ($ string ));
33
33
}
34
34
35
35
/**
36
36
* @dataProvider arrayFindDataProvider
37
37
*/
38
- public function testArrayFind (array $ array , callable $ callback , $ expected ): void
38
+ public function testArrayFind (array $ array , callable $ callback , $ expected )
39
39
{
40
40
$ this ->assertSame ($ expected , array_find ($ array , $ callback ));
41
41
}
42
42
43
43
/**
44
44
* @dataProvider arrayFindKeyDataProvider
45
45
*/
46
- public function testArrayFindKey (array $ array , callable $ callback , $ expected ): void
46
+ public function testArrayFindKey (array $ array , callable $ callback , $ expected )
47
47
{
48
48
$ this ->assertSame ($ expected , array_find_key ($ array , $ callback ));
49
49
}
50
50
51
51
/**
52
52
* @dataProvider arrayAnyDataProvider
53
53
*/
54
- public function testArrayAny (array $ array , callable $ callback , bool $ expected ): void
54
+ public function testArrayAny (array $ array , callable $ callback , bool $ expected )
55
55
{
56
56
$ this ->assertSame ($ expected , array_any ($ array , $ callback ));
57
57
}
58
58
59
59
/**
60
60
* @dataProvider arrayAllDataProvider
61
61
*/
62
- public function testArrayAll (array $ array , callable $ callback , bool $ expected ): void
62
+ public function testArrayAll (array $ array , callable $ callback , bool $ expected )
63
63
{
64
64
$ this ->assertSame ($ expected , array_all ($ array , $ callback ));
65
65
}
@@ -188,7 +188,7 @@ public static function arrayAllDataProvider(): array
188
188
*
189
189
* @dataProvider mbTrimProvider
190
190
*/
191
- public function testMbTrim (string $ expected , string $ string , ?string $ characters = null , ?string $ encoding = null ): void
191
+ public function testMbTrim (string $ expected , string $ string , ?string $ characters = null , ?string $ encoding = null )
192
192
{
193
193
$ this ->assertSame ($ expected , mb_trim ($ string , $ characters , $ encoding ));
194
194
}
@@ -198,7 +198,7 @@ public function testMbTrim(string $expected, string $string, ?string $characters
198
198
*
199
199
* @dataProvider mbLTrimProvider
200
200
*/
201
- public function testMbLTrim (string $ expected , string $ string , ?string $ characters = null , ?string $ encoding = null ): void
201
+ public function testMbLTrim (string $ expected , string $ string , ?string $ characters = null , ?string $ encoding = null )
202
202
{
203
203
$ this ->assertSame ($ expected , mb_ltrim ($ string , $ characters , $ encoding ));
204
204
}
@@ -208,25 +208,25 @@ public function testMbLTrim(string $expected, string $string, ?string $character
208
208
*
209
209
* @dataProvider mbRTrimProvider
210
210
*/
211
- public function testMbRTrim (string $ expected , string $ string , ?string $ characters = null , ?string $ encoding = null ): void
211
+ public function testMbRTrim (string $ expected , string $ string , ?string $ characters = null , ?string $ encoding = null )
212
212
{
213
213
$ this ->assertSame ($ expected , mb_rtrim ($ string , $ characters , $ encoding ));
214
214
}
215
215
216
- public function testMbTrimException (): void
216
+ public function testMbTrimException ()
217
217
{
218
218
$ this ->expectException (\ValueError::class);
219
219
mb_trim ("\u{180F}" , '' , 'NULL ' );
220
220
}
221
221
222
- public function testMbTrimEncoding (): void
222
+ public function testMbTrimEncoding ()
223
223
{
224
224
$ this ->assertSame ('あ ' , mb_convert_encoding (mb_trim ("\x81\x40\x82\xa0\x81\x40" , "\x81\x40" , 'SJIS ' ), 'UTF-8 ' , 'SJIS ' ));
225
225
$ this ->assertSame ('226f575b ' , bin2hex (mb_ltrim (mb_convert_encoding ("\u{FFFE}漢字 " , 'UTF-16LE ' , 'UTF-8 ' ), mb_convert_encoding ("\u{FFFE}\u{FEFF}" , 'UTF-16LE ' , 'UTF-8 ' ), 'UTF-16LE ' )));
226
226
$ this ->assertSame ('6f225b57 ' , bin2hex (mb_ltrim (mb_convert_encoding ("\u{FEFF}漢字 " , 'UTF-16BE ' , 'UTF-8 ' ), mb_convert_encoding ("\u{FFFE}\u{FEFF}" , 'UTF-16BE ' , 'UTF-8 ' ), 'UTF-16BE ' )));
227
227
}
228
228
229
- public function testMbTrimCharactersEncoding (): void
229
+ public function testMbTrimCharactersEncoding ()
230
230
{
231
231
$ strUtf8 = "\u{3042}\u{3000}" ;
232
232
0 commit comments