From 342d0aed3eb44d6643414d4b6f55008ec443cedf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=B6ller?= Date: Sat, 22 Jan 2022 18:48:36 +0100 Subject: [PATCH] Fix: Wrapping --- test/Unit/AbstractNormalizerTestCase.php | 6 ++++-- test/Unit/Format/IndentTest.php | 19 +++++++++++++------ test/Unit/Format/JsonEncodeOptionsTest.php | 6 ++++-- test/Unit/SchemaNormalizerTest.php | 7 +++++-- .../Composer/ComposerJsonNormalizerTest.php | 12 ++++++++---- .../VersionConstraintNormalizerTest.php | 14 ++++++++++---- 6 files changed, 44 insertions(+), 20 deletions(-) diff --git a/test/Unit/AbstractNormalizerTestCase.php b/test/Unit/AbstractNormalizerTestCase.php index 71670e9f..d8c1de8f 100644 --- a/test/Unit/AbstractNormalizerTestCase.php +++ b/test/Unit/AbstractNormalizerTestCase.php @@ -46,8 +46,10 @@ final protected function className(): string return $className; } - final protected static function assertJsonStringEqualsJsonStringNormalized(string $expected, string $actual): void - { + final protected static function assertJsonStringEqualsJsonStringNormalized( + string $expected, + string $actual + ): void { $printer = new Printer\Printer(); $normalize = static function (string $json) use ($printer): string { diff --git a/test/Unit/Format/IndentTest.php b/test/Unit/Format/IndentTest.php index 0f8ada5b..245318cf 100644 --- a/test/Unit/Format/IndentTest.php +++ b/test/Unit/Format/IndentTest.php @@ -94,8 +94,11 @@ public function testFromSizeAndStyleRejectsInvalidStyle(): void /** * @dataProvider provideSizeStyleAndIndentString */ - public function testFromSizeAndStyleReturnsIndent(int $size, string $style, string $string): void - { + public function testFromSizeAndStyleReturnsIndent( + int $size, + string $style, + string $string + ): void { $indent = Format\Indent::fromSizeAndStyle( $size, $style, @@ -186,8 +189,10 @@ public function provideValidIndentString(): \Generator * @dataProvider provideMixedIndentAndSniffedIndent * @dataProvider providePureIndentAndSniffedIndent */ - public function testFromJsonReturnsIndentSniffedFromArray(string $actualIndent, string $sniffedIndent): void - { + public function testFromJsonReturnsIndentSniffedFromArray( + string $actualIndent, + string $sniffedIndent + ): void { $json = Json::fromEncoded( <<