Skip to content

Commit

Permalink
Add better line ending splitter
Browse files Browse the repository at this point in the history
  • Loading branch information
epdenouden authored and sebastianbergmann committed Jan 11, 2019
1 parent 6755333 commit 69e0d2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Runner/PhptTestCase.php
Expand Up @@ -617,7 +617,7 @@ private function getLocationHintFromDiff(string $message, array $sections): arra
$previousLine = '';
$block = 'message';

foreach (\explode(\PHP_EOL, $message) as $line) {
foreach (\preg_split('/\r\n|\r|\n/', $message) as $line) {
$line = \trim($line);

if ($block === 'message' && $line === '--- Expected') {
Expand Down

0 comments on commit 69e0d2f

Please sign in to comment.