| Total Complexity | 1 |
| Total Lines | 41 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | trait AssertErrorResponse |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * Asserts that an error response (status code 4xx) is valid. |
||
| 16 | * |
||
| 17 | * @param TestResponse $response |
||
| 18 | * @param integer $expectedStatusCode |
||
| 19 | * @param array $expectedErrors An array of the expected error objects. |
||
| 20 | * @param boolean $strict If true, unsafe characters are not allowed when checking members name. |
||
| 21 | * |
||
| 22 | * @return void |
||
| 23 | * @throws \PHPUnit\Framework\AssertionFailedError |
||
| 24 | */ |
||
| 25 | 72 | public static function assertIsErrorResponse( |
|
| 56 |