Skip to content

Commit

Permalink
Bad custom exception test
Browse files Browse the repository at this point in the history
  • Loading branch information
darrynten committed Feb 12, 2017
1 parent 2616e50 commit 16c1afb
Showing 1 changed file with 10 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,16 @@ public function testApiException()
public function testApiJsonException() {
$this->expectException(CustomException::class);

throw new CustomException(json_encode([
'errors' => [
'code' => 1
]
]));
throw new CustomException(json_encode(
[
'errors' => [
'code' => 1
],
'status' => 404,
'title' => 'Not Found',
'detail' => 'Details'
]
));
}

public function testCheapskateTriggerException() {
Expand Down

0 comments on commit 16c1afb

Please sign in to comment.