diff --git a/src/Illuminate/Foundation/Testing/TestResponse.php b/src/Illuminate/Foundation/Testing/TestResponse.php index 3fc399375616..40d77463d39e 100644 --- a/src/Illuminate/Foundation/Testing/TestResponse.php +++ b/src/Illuminate/Foundation/Testing/TestResponse.php @@ -927,7 +927,7 @@ public function assertSessionHasNoErrors() PHPUnit::assertFalse( $hasErrors, - 'Session has unexpected errors: '.PHP_EOL. + 'Session has unexpected errors: '.PHP_EOL.PHP_EOL. json_encode($errors, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES) );