Skip to content

Commit 9cc1408

Browse files
committed
clean up unnecessary override lookalike
1 parent e1d3d99 commit 9cc1408

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

tests/ChangesReporting/Output/JsonOutputFormatterTest.php

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ public function testGetName(): void
3131

3232
public function testReportShouldShowNumberOfChangesWithNoDiffs(): void
3333
{
34-
$this->expectOsOutputString((string) file_get_contents(__DIR__ . '/Fixtures/without_diffs.json'));
34+
$expectedOutput = (string) file_get_contents(__DIR__ . '/Fixtures/without_diffs.json');
35+
$this->expectOutputString(rtrim($expectedOutput) . PHP_EOL);
3536

3637
$this->jsonOutputFormatter->report(
3738
new ProcessResult(
@@ -62,15 +63,4 @@ public function testReportShouldShowNumberOfChangesWithNoDiffs(): void
6263
new Configuration(showDiffs: false)
6364
);
6465
}
65-
66-
protected function expectOsOutputString(string $expectedOutput): void
67-
{
68-
$isWindows = strncasecmp(PHP_OS, 'WIN', 3) === 0;
69-
if ($isWindows) {
70-
$expectedOutput = str_replace('%0A', '%0D%0A', $expectedOutput);
71-
$expectedOutput = trim($expectedOutput) . PHP_EOL;
72-
}
73-
74-
parent::expectOutputString($expectedOutput);
75-
}
7666
}

0 commit comments

Comments
 (0)