| Conditions | 1 | 
| Paths | 1 | 
| Total Lines | 20 | 
| Code Lines | 14 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 2 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php | ||
| 17 | protected function assertErrorFormat(TestResponse $response, $status, $data = []) | ||
| 18 |     { | ||
| 19 | $response->assertStatus($status); | ||
| 20 | $this->checkRequiredResponseHeaders($response); | ||
|  | |||
| 21 | $this->assertMatchesRegularExpression( | ||
| 22 | "/" . trim( | ||
| 23 | View::file( | ||
| 24 |                     config('digitonic.api-test-suite.templates.base_path') . 'errors/' . $status . '.blade.php', | ||
| 25 | $data | ||
| 26 | )->with( | ||
| 27 | |||
| 28 | ['exception' => $response->exception | ||
| 29 | ] | ||
| 30 | )->render() | ||
| 31 | |||
| 32 | ) . "/", | ||
| 33 | $response->getContent(), | ||
| 34 | |||
| 35 | 'Error response structure doesn\'t follow the template set up in ' | ||
| 36 |             .config('digitonic.api-test-suite.templates.base_path').' errors/{errorStatusCode}.blade.php.' | ||
| 37 | ); | ||
| 40 |