We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2712027 commit a147377Copy full SHA for a147377
1 file changed
tests/PhpParser/Printer/PHPStanPrinterTest.php
@@ -29,11 +29,11 @@ public function testAddingCommentOnSomeNodesFail(): void
29
$innerParser = $parserReflectionProperty->getValue($phpstanParser);
30
$tokens = $innerParser->getTokens();
31
32
- $standardPrinter = new Standard([
33
- 'newline' => "\n",
34
- ]);
+ $standardPrinter = new Standard();
35
$printerContents = $standardPrinter->printFormatPreserving($stmts, $stmts, $tokens);
36
37
- $this->assertStringEqualsFile(__DIR__ . '/Fixture/some_array_map.php', $printerContents);
+ $newlineNormalizedContents = str_replace("\n", PHP_EOL, $printerContents);
+
+ $this->assertStringEqualsFile(__DIR__ . '/Fixture/some_array_map.php', $newlineNormalizedContents);
38
}
39
0 commit comments