From aa7f7b3ea66e0155960765d1213c632dafa74918 Mon Sep 17 00:00:00 2001 From: VirtualTam Date: Mon, 18 Jan 2016 00:24:36 +0100 Subject: fix: use PHP_EOL for carriage returns in file logs Relates to #436 Signed-off-by: VirtualTam --- tests/UtilsTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/UtilsTest.php') diff --git a/tests/UtilsTest.php b/tests/UtilsTest.php index f3bb556e..3073b5eb 100644 --- a/tests/UtilsTest.php +++ b/tests/UtilsTest.php @@ -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)); } /** -- cgit v1.2.3