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()
59
59
$ objectPath = substr ($ name , strlen ($ resourcesPath ));
60
60
61
61
$ 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
+
62
85
$ this ->assertSame (
63
- file_get_contents ( $ resourcesPath . $ objectPath ) ,
64
- file_get_contents ( $ this -> temporaryDirectory . $ objectPath ) ,
86
+ $ expected ,
87
+ $ actual ,
65
88
$ objectPath
66
89
);
67
90
}
You can’t perform that action at this time.
0 commit comments