diff --git a/src/Illuminate/Testing/PendingCommand.php b/src/Illuminate/Testing/PendingCommand.php index 8974aac1226b..55ea307c82f3 100644 --- a/src/Illuminate/Testing/PendingCommand.php +++ b/src/Illuminate/Testing/PendingCommand.php @@ -351,7 +351,7 @@ private function applyTableOutputExpectations($mock) $table->render(); $lines = array_filter( - explode("\n", $output->fetch()) + explode(PHP_EOL, $output->fetch()) ); foreach ($lines as $line) {