Fix mismatch

This commit is contained in:
Littlesqx 2019-08-30 09:28:18 +08:00 committed by David Garcia
parent 4a2a4fe4a5
commit 7b674dd2ca

View File

@ -56,8 +56,8 @@ class HttpClientExceptionTest extends MailgunTestCase
public function testForbiddenRequestGetMessage()
{
$response = new Response(400, ['Content-Type' => 'text/html'], '<html><body>Forbidden</body></html>');
$exception = HttpClientException::badRequest($response);
$response = new Response(403, ['Content-Type' => 'text/html'], '<html><body>Forbidden</body></html>');
$exception = HttpClientException::forbidden($response);
$this->assertStringEndsWith('<html><body>Forbidden</body></html>', $exception->getMessage());
}
}