Skip to content

Commit c0fee7a

Browse files
CS fix
1 parent 17a0fbb commit c0fee7a

File tree

4 files changed

+25
-25
lines changed

4 files changed

+25
-25
lines changed

tests/Mbstring/MbstringTest.php

+10-10
Original file line numberDiff line numberDiff line change
@@ -659,7 +659,7 @@ public function testDecodeMimeheader()
659659
* @dataProvider paddingEmojiProvider
660660
* @dataProvider paddingEncodingProvider
661661
*/
662-
public function testMbStrPad(string $expectedResult, string $string, int $length, string $padString, int $padType, ?string $encoding = null): void
662+
public function testMbStrPad(string $expectedResult, string $string, int $length, string $padString, int $padType, ?string $encoding = null)
663663
{
664664
if ('UTF-32' === $encoding && \PHP_VERSION_ID < 73000) {
665665
$this->markTestSkipped('PHP < 7.3 doesn\'t handle UTF-32 encoding properly');
@@ -673,7 +673,7 @@ public function testMbStrPad(string $expectedResult, string $string, int $length
673673
*
674674
* @dataProvider mbStrPadInvalidArgumentsProvider
675675
*/
676-
public function testMbStrPadInvalidArguments(string $expectedError, string $string, int $length, string $padString, int $padType, ?string $encoding = null): void
676+
public function testMbStrPadInvalidArguments(string $expectedError, string $string, int $length, string $padString, int $padType, ?string $encoding = null)
677677
{
678678
$this->expectException(\ValueError::class);
679679
$this->expectErrorMessage($expectedError);
@@ -684,15 +684,15 @@ public function testMbStrPadInvalidArguments(string $expectedError, string $stri
684684
/**
685685
* @dataProvider ucFirstDataProvider
686686
*/
687-
public function testMbUcFirst(string $string, string $expected): void
687+
public function testMbUcFirst(string $string, string $expected)
688688
{
689689
$this->assertSame($expected, mb_ucfirst($string));
690690
}
691691

692692
/**
693693
* @dataProvider lcFirstDataProvider
694694
*/
695-
public function testMbLcFirst(string $string, string $expected): void
695+
public function testMbLcFirst(string $string, string $expected)
696696
{
697697
$this->assertSame($expected, mb_lcfirst($string));
698698
}
@@ -814,7 +814,7 @@ public static function lcFirstDataProvider(): array
814814
*
815815
* @dataProvider mbTrimProvider
816816
*/
817-
public function testMbTrim(string $expected, string $string, ?string $characters = null, ?string $encoding = null): void
817+
public function testMbTrim(string $expected, string $string, ?string $characters = null, ?string $encoding = null)
818818
{
819819
$this->assertSame($expected, mb_trim($string, $characters, $encoding));
820820
}
@@ -824,7 +824,7 @@ public function testMbTrim(string $expected, string $string, ?string $characters
824824
*
825825
* @dataProvider mbLTrimProvider
826826
*/
827-
public function testMbLTrim(string $expected, string $string, ?string $characters = null, ?string $encoding = null): void
827+
public function testMbLTrim(string $expected, string $string, ?string $characters = null, ?string $encoding = null)
828828
{
829829
$this->assertSame($expected, mb_ltrim($string, $characters, $encoding));
830830
}
@@ -834,25 +834,25 @@ public function testMbLTrim(string $expected, string $string, ?string $character
834834
*
835835
* @dataProvider mbRTrimProvider
836836
*/
837-
public function testMbRTrim(string $expected, string $string, ?string $characters = null, ?string $encoding = null): void
837+
public function testMbRTrim(string $expected, string $string, ?string $characters = null, ?string $encoding = null)
838838
{
839839
$this->assertSame($expected, mb_rtrim($string, $characters, $encoding));
840840
}
841841

842-
public function testMbTrimException(): void
842+
public function testMbTrimException()
843843
{
844844
$this->expectException(\ValueError::class);
845845
mb_trim("\u{180F}", '', 'NULL');
846846
}
847847

848-
public function testMbTrimEncoding(): void
848+
public function testMbTrimEncoding()
849849
{
850850
$this->assertSame('', mb_convert_encoding(mb_trim("\x81\x40\x82\xa0\x81\x40", "\x81\x40", 'SJIS'), 'UTF-8', 'SJIS'));
851851
$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')));
852852
$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')));
853853
}
854854

855-
public function testMbTrimCharactersEncoding(): void
855+
public function testMbTrimCharactersEncoding()
856856
{
857857
$strUtf8 = "\u{3042}\u{3000}";
858858

tests/Php81/CURLStringFileTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public static function tearDownAfterClass(): void
4141
}
4242
}
4343

44-
public function testCurlFileShowsContents(): void
44+
public function testCurlFileShowsContents()
4545
{
4646
$file = new \CURLStringFile('Hello', 'symfony.txt', 'text/plain');
4747
$data = ['test_file' => $file];

tests/Php83/Php83Test.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public function testJsonValidate(bool $valid, string $json, string $errorMessage
3333
* @dataProvider paddingEmojiProvider
3434
* @dataProvider paddingEncodingProvider
3535
*/
36-
public function testMbStrPad(string $expectedResult, string $string, int $length, string $padString, int $padType, ?string $encoding = null): void
36+
public function testMbStrPad(string $expectedResult, string $string, int $length, string $padString, int $padType, ?string $encoding = null)
3737
{
3838
$this->assertSame($expectedResult, mb_convert_encoding(mb_str_pad($string, $length, $padString, $padType, $encoding), 'UTF-8', $encoding ?? mb_internal_encoding()));
3939
}
@@ -43,7 +43,7 @@ public function testMbStrPad(string $expectedResult, string $string, int $length
4343
*
4444
* @dataProvider mbStrPadInvalidArgumentsProvider
4545
*/
46-
public function testMbStrPadInvalidArguments(string $expectedError, string $string, int $length, string $padString, int $padType, ?string $encoding = null): void
46+
public function testMbStrPadInvalidArguments(string $expectedError, string $string, int $length, string $padString, int $padType, ?string $encoding = null)
4747
{
4848
$this->expectException(\ValueError::class);
4949
$this->expectErrorMessage($expectedError);

tests/Php84/Php84Test.php

+12-12
Original file line numberDiff line numberDiff line change
@@ -19,47 +19,47 @@ class Php84Test extends TestCase
1919
/**
2020
* @dataProvider ucFirstDataProvider
2121
*/
22-
public function testMbUcFirst(string $string, string $expected): void
22+
public function testMbUcFirst(string $string, string $expected)
2323
{
2424
$this->assertSame($expected, mb_ucfirst($string));
2525
}
2626

2727
/**
2828
* @dataProvider lcFirstDataProvider
2929
*/
30-
public function testMbLcFirst(string $string, string $expected): void
30+
public function testMbLcFirst(string $string, string $expected)
3131
{
3232
$this->assertSame($expected, mb_lcfirst($string));
3333
}
3434

3535
/**
3636
* @dataProvider arrayFindDataProvider
3737
*/
38-
public function testArrayFind(array $array, callable $callback, $expected): void
38+
public function testArrayFind(array $array, callable $callback, $expected)
3939
{
4040
$this->assertSame($expected, array_find($array, $callback));
4141
}
4242

4343
/**
4444
* @dataProvider arrayFindKeyDataProvider
4545
*/
46-
public function testArrayFindKey(array $array, callable $callback, $expected): void
46+
public function testArrayFindKey(array $array, callable $callback, $expected)
4747
{
4848
$this->assertSame($expected, array_find_key($array, $callback));
4949
}
5050

5151
/**
5252
* @dataProvider arrayAnyDataProvider
5353
*/
54-
public function testArrayAny(array $array, callable $callback, bool $expected): void
54+
public function testArrayAny(array $array, callable $callback, bool $expected)
5555
{
5656
$this->assertSame($expected, array_any($array, $callback));
5757
}
5858

5959
/**
6060
* @dataProvider arrayAllDataProvider
6161
*/
62-
public function testArrayAll(array $array, callable $callback, bool $expected): void
62+
public function testArrayAll(array $array, callable $callback, bool $expected)
6363
{
6464
$this->assertSame($expected, array_all($array, $callback));
6565
}
@@ -188,7 +188,7 @@ public static function arrayAllDataProvider(): array
188188
*
189189
* @dataProvider mbTrimProvider
190190
*/
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)
192192
{
193193
$this->assertSame($expected, mb_trim($string, $characters, $encoding));
194194
}
@@ -198,7 +198,7 @@ public function testMbTrim(string $expected, string $string, ?string $characters
198198
*
199199
* @dataProvider mbLTrimProvider
200200
*/
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)
202202
{
203203
$this->assertSame($expected, mb_ltrim($string, $characters, $encoding));
204204
}
@@ -208,25 +208,25 @@ public function testMbLTrim(string $expected, string $string, ?string $character
208208
*
209209
* @dataProvider mbRTrimProvider
210210
*/
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)
212212
{
213213
$this->assertSame($expected, mb_rtrim($string, $characters, $encoding));
214214
}
215215

216-
public function testMbTrimException(): void
216+
public function testMbTrimException()
217217
{
218218
$this->expectException(\ValueError::class);
219219
mb_trim("\u{180F}", '', 'NULL');
220220
}
221221

222-
public function testMbTrimEncoding(): void
222+
public function testMbTrimEncoding()
223223
{
224224
$this->assertSame('', mb_convert_encoding(mb_trim("\x81\x40\x82\xa0\x81\x40", "\x81\x40", 'SJIS'), 'UTF-8', 'SJIS'));
225225
$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')));
226226
$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')));
227227
}
228228

229-
public function testMbTrimCharactersEncoding(): void
229+
public function testMbTrimCharactersEncoding()
230230
{
231231
$strUtf8 = "\u{3042}\u{3000}";
232232

0 commit comments

Comments
 (0)