Skip to content

Commit

Permalink
Upgrade docs for v3.1 (#6335)
Browse files Browse the repository at this point in the history
Co-authored-by: zxyfaxcn <[email protected]>
Co-authored-by: Lu Fei <[email protected]>
  • Loading branch information
3 people authored Nov 29, 2023
1 parent 429de8f commit a0b4f54
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/Http/TestResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -549,9 +549,10 @@ public function decodeResponseJson()
$decodedResponse = $testJson->json();

if (is_null($decodedResponse) || $decodedResponse === false) {
if ($this->exception ?? null) {
throw $this->exception;
}
$exception = $this->exception ?? null;

$exception && throw $exception;

PHPUnit::fail('Invalid JSON was returned from the route.');
}

Expand Down

0 comments on commit a0b4f54

Please sign in to comment.