Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,7 @@ public function testReportShouldShowNumberOfChangesWithNoDiffs(): void
[
new FileDiff(
'some/file.php',
'--- Original' . PHP_EOL . '+++ New' . PHP_EOL .
'@@ -38,5 +39,6 @@' . PHP_EOL .
'return true;' . PHP_EOL . '}' . PHP_EOL,
"--- Original\n+++ New\n@@ -38,5 +39,6 @@\nreturn true;\n}\n",
'diff console formatted',
[new RectorWithLineChange(StrStartsWithRector::class, 38)]
),
Expand All @@ -48,9 +46,7 @@ public function testReportShouldShowNumberOfChangesWithNoDiffs(): void

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

$actualOutput = JsonOutputFactory::create(
new ProcessResult(
Expand Down
Loading