Fix test on systems where EOL isn't "\n", like Windows

This commit is contained in:
Kalle Sommer Nielsen 2015-04-08 23:56:29 +02:00
parent 5ba72e5f80
commit 8d3c4e5988

View File

@ -38,11 +38,16 @@ if ($exists) {
}
echo "---\n";
if (PHP_EOL !== "\n") {
$a = str_replace(PHP_EOL, "\n", $a);
}
var_dump(strcmp($output, $a));
var_dump(strcmp($output, $output2));
var_dump(strcmp($output, $output3));
var_dump(strcmp($output, $output4)); // different
var_dump(strcmp($output, $output5)); // different
?>
--EXPECTF--
bool(true)