diff --git a/src/Illuminate/Testing/TestResponse.php b/src/Illuminate/Testing/TestResponse.php index 86dccf7d2339..873f9f41e93f 100644 --- a/src/Illuminate/Testing/TestResponse.php +++ b/src/Illuminate/Testing/TestResponse.php @@ -212,7 +212,9 @@ protected function statusMessageWithDetails($expected, $actual) } } - return "Expected response status code [{$expected}] but received {$actual}."; + $statusText = $this->statusText(); + + return "Expected response status code [{$expected}] but received {$actual} ({$statusText})."; } /**