diff options
author | VirtualTam <virtualtam@flibidi.net> | 2016-01-18 00:28:21 +0100 |
---|---|---|
committer | VirtualTam <virtualtam@flibidi.net> | 2016-01-18 00:28:21 +0100 |
commit | dc7db03feb92904fe1bed087cdf01c75edf0f68f (patch) | |
tree | da930d531d73d29a771fc6bde51b2279053fdf9f /tests | |
parent | 122d90ef8d83c6702a8b47f81c32fa3ba7a53c31 (diff) | |
parent | aa7f7b3ea66e0155960765d1213c632dafa74918 (diff) | |
download | Shaarli-dc7db03feb92904fe1bed087cdf01c75edf0f68f.tar.gz Shaarli-dc7db03feb92904fe1bed087cdf01c75edf0f68f.tar.zst Shaarli-dc7db03feb92904fe1bed087cdf01c75edf0f68f.zip |
Merge pull request #443 from virtualtam/fix/logm-eol
fix: use PHP_EOL for carriage returns in file logs
Diffstat (limited to 'tests')
-rw-r--r-- | tests/UtilsTest.php | 2 |
1 files changed, 1 insertions, 1 deletions
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 | |||
51 | protected function getLastLogEntry() | 51 | protected function getLastLogEntry() |
52 | { | 52 | { |
53 | $logFile = file(self::$testLogFile); | 53 | $logFile = file(self::$testLogFile); |
54 | return explode(' - ', trim(array_pop($logFile), '\n')); | 54 | return explode(' - ', trim(array_pop($logFile), PHP_EOL)); |
55 | } | 55 | } |
56 | 56 | ||
57 | /** | 57 | /** |