Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php declare(strict_types = 1); |
||
22 | public function exceptionMessageWillIncludeValidationErrors() |
||
23 | { |
||
24 | $exception = new ApiResponseErrorException( |
||
25 | '', |
||
26 | (object)[ |
||
27 | 'message' => 'Validation failed', |
||
28 | 'errors' => ['a' => 'invalid reason 1', 'b' => 'invalid reason 2'], |
||
29 | ], |
||
30 | Response::HTTP_BAD_REQUEST |
||
31 | ); |
||
32 | $this->assertRegExp('#\[a\]: invalid reason 1\n\[b\]: invalid reason 2#', $exception->getMessage()); |
||
33 | } |
||
34 | |||
52 |