diff --git a/src/Http/TestResponse.php b/src/Http/TestResponse.php index e6d3d04..01bff34 100644 --- a/src/Http/TestResponse.php +++ b/src/Http/TestResponse.php @@ -61,10 +61,11 @@ public function assertStatus(int $status): self $this->response->getStatusCode(), $status, \sprintf( - "Received response status code [%s : %s] but expected %s.", + "Received response status code [%s : %s] but expected %s. Body: %s", $this->response->getStatusCode(), $this->response->getReasonPhrase(), - $status + $status, + (string) $this->response->getBody(), ) );