File tree Expand file tree Collapse file tree 1 file changed +2
-12
lines changed
tests/ChangesReporting/Output Expand file tree Collapse file tree 1 file changed +2
-12
lines changed Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments