File tree Expand file tree Collapse file tree 1 file changed +25
-2
lines changed
Expand file tree Collapse file tree 1 file changed +25
-2
lines changed Original file line number Diff line number Diff line change @@ -59,9 +59,32 @@ public function testOutput()
5959 $ objectPath = substr ($ name , strlen ($ resourcesPath ));
6060
6161 $ this ->assertFileExists ($ this ->temporaryDirectory . $ objectPath );
62+
63+ $ expected = file_get_contents ($ resourcesPath . $ objectPath );
64+ $ actual = file_get_contents ($ this ->temporaryDirectory . $ objectPath );
65+
66+ if (strtoupper (substr (PHP_OS , 0 , 3 )) === 'WIN ' ) {
67+ $ expected = str_replace (
68+ [
69+ "\r" ,
70+ "\n" ,
71+ ],
72+ '' ,
73+ $ expected
74+ );
75+ $ actual = str_replace (
76+ [
77+ "\r" ,
78+ "\n" ,
79+ ],
80+ '' ,
81+ $ actual
82+ );
83+ }
84+
6285 $ this ->assertSame (
63- file_get_contents ( $ resourcesPath . $ objectPath ) ,
64- file_get_contents ( $ this -> temporaryDirectory . $ objectPath ) ,
86+ $ expected ,
87+ $ actual ,
6588 $ objectPath
6689 );
6790 }
You can’t perform that action at this time.
0 commit comments