| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 22 | 18 | public static function assertIsNoContentResponse(TestResponse $response) |
|
| 23 | { |
||
| 24 | 18 | $response->assertStatus(204); |
|
| 25 | 15 | $response->assertHeaderMissing(HttpHeader::HEADER_NAME); |
|
| 26 | |||
| 27 | // Decode JSON response |
||
| 28 | 9 | $content = $response->getContent(); |
|
| 29 | |||
| 30 | 9 | PHPUnit::assertEmpty($content); |
|
| 31 | 6 | } |
|
| 33 |