]> git.immae.eu Git - github/shaarli/Shaarli.git/blobdiff - tests/UtilsTest.php
fix: use PHP_EOL for carriage returns in file logs
[github/shaarli/Shaarli.git] / tests / UtilsTest.php
index f3bb556ec5d0e7f851822a6d4d4cc71d9257c210..3073b5eb45ca2736f7ed8cf649ad9997392e1287 100644 (file)
@@ -51,7 +51,7 @@ class UtilsTest extends PHPUnit_Framework_TestCase
     protected function getLastLogEntry()
     {
         $logFile = file(self::$testLogFile);
-        return explode(' - ', trim(array_pop($logFile), '\n'));
+        return explode(' - ', trim(array_pop($logFile), PHP_EOL));
     }
 
     /**