Skip to content

Commit d698b97

Browse files
committed
update using heredoc
1 parent a544397 commit d698b97

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

tests/ChangesReporting/Output/JsonOutputFormatterTest.php

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,14 @@ public function testReportShouldShowNumberOfChangesWithNoDiffs(): void
3939
[
4040
new FileDiff(
4141
'some/file.php',
42-
'--- Original' . PHP_EOL . '+++ New' . PHP_EOL .
43-
'@@ -38,5 +39,6 @@' . PHP_EOL .
44-
'return true;' . PHP_EOL . '}' . PHP_EOL,
42+
<<<'DIFF'
43+
--- Original
44+
+++ New
45+
@@ -38,5 +39,6 @@
46+
return true;
47+
}
48+
49+
DIFF,
4550
'diff console formatted',
4651
[new RectorWithLineChange(StrStartsWithRector::class, 38)]
4752
),

0 commit comments

Comments
 (0)