Skip to content

Commit

Permalink
[9.x] Add statusText for an assertion message (#43774)
Browse files Browse the repository at this point in the history
  • Loading branch information
nshiro authored Aug 19, 2022
1 parent ca1b6c4 commit 1ae8ffd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Illuminate/Testing/TestResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -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}).";
}

/**
Expand Down

0 comments on commit 1ae8ffd

Please sign in to comment.