Skip to content

Commit

Permalink
🚧
Browse files Browse the repository at this point in the history
  • Loading branch information
willpower232 committed Dec 19, 2023
1 parent aeef3a7 commit 798e05e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/ClientTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,14 @@ public function testPrepareResponseThrowsApiErrors(): void
$response = new Response(200, [], json_encode([
'status' => 'error',
'data' => [
'code' => 5,
'code' => 'TestExceptionCode',
'message' => 'my-test-error',
],
]));

$this->expectException(ApiException::class);
$this->expectExceptionMessage('5: my-test-error');
$this->expectExceptionCode(5);
// $this->expectExceptionMessage('5: my-test-error');
// $this->expectExceptionCode(5);

$client->prepareResponse($response, new class() {
});
Expand Down

0 comments on commit 798e05e

Please sign in to comment.