fix: use PHP_EOL for carriage returns in file logs
Relates to #436 Signed-off-by: VirtualTam <virtualtam@flibidi.net>
This commit is contained in:
parent
122d90ef8d
commit
aa7f7b3ea6
2 changed files with 2 additions and 2 deletions
tests
|
@ -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));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue