Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
28 | public function provideCases(): \Generator |
||
29 | { |
||
30 | yield 'client http exception' => [ |
||
31 | new BadRequestHttpException('Bad request.'), |
||
32 | 'Bad request.', |
||
33 | Response::HTTP_BAD_REQUEST, |
||
34 | ]; |
||
35 | |||
36 | yield 'server exception' => [ |
||
37 | new \InvalidArgumentException(), |
||
38 | 'Internal server error.', |
||
39 | Response::HTTP_INTERNAL_SERVER_ERROR |
||
40 | ]; |
||
43 |