Skip to content

Commit 0cd37ff

Browse files
committed
fix - windows tests
1 parent 9d1b61f commit 0cd37ff

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

tests/run_all_tests.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,10 @@
248248
if (file_exists($caseOut)) {
249249
$expected = file_get_contents($caseOut);
250250
}
251+
if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') {
252+
$got = str_replace("\r\n", "\n", $got);
253+
$expected = str_replace("\r\n", "\n", $expected);
254+
}
251255
if ($got != $expected) {
252256
$brokenTests[$caseOut] = $got;
253257
if (isset($opt['stop'])) {

0 commit comments

Comments
 (0)