Skip to content

Commit 323e82a

Browse files
authored
Fix test on Windows CI (#8467)
1 parent 3cd35a1 commit 323e82a

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

‎tests/ChangesReporting/Output/Factory/JsonOutputFactoryTest.php‎

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,7 @@ public function testReportShouldShowNumberOfChangesWithNoDiffs(): void
2424
[
2525
new FileDiff(
2626
'some/file.php',
27-
'--- Original' . PHP_EOL . '+++ New' . PHP_EOL .
28-
'@@ -38,5 +39,6 @@' . PHP_EOL .
29-
'return true;' . PHP_EOL . '}' . PHP_EOL,
27+
"--- Original\n+++ New\n@@ -38,5 +39,6 @@\nreturn true;\n}\n",
3028
'diff console formatted',
3129
[new RectorWithLineChange(StrStartsWithRector::class, 38)]
3230
),
@@ -48,9 +46,7 @@ public function testReportShouldShowNumberOfChangesWithNoDiffs(): void
4846

4947
public function testReportShouldAttributeEachRectorToItsLine(): void
5048
{
51-
$diff = '--- Original' . PHP_EOL . '+++ New' . PHP_EOL .
52-
'@@ -38,5 +39,6 @@' . PHP_EOL .
53-
'return true;' . PHP_EOL . '}' . PHP_EOL;
49+
$diff = "--- Original\n+++ New\n@@ -38,5 +39,6 @@\nreturn true;\n}\n";
5450

5551
$actualOutput = JsonOutputFactory::create(
5652
new ProcessResult(

0 commit comments

Comments
 (0)