diff --git a/test/PMA_headerLocation_test.php b/test/PMA_headerLocation_test.php
index 42a791a50..2c5c25aae 100644
--- a/test/PMA_headerLocation_test.php
+++ b/test/PMA_headerLocation_test.php
@@ -285,15 +285,16 @@ class PMA_headerLocation_test extends PHPUnit_Extensions_OutputTestCase
$GLOBALS['db'] = 'test_db';
$url = './navigation.php?db='.$GLOBALS['db'];
- $write = "\n" . '' . "\r\n ";
+ $write = PHP_EOL . '' . PHP_EOL .
+ " ";
$this->expectOutputString($write);
PMA_reloadNavigation();