Total Complexity | 4 |
Total Lines | 32 |
Duplicated Lines | 0 % |
Coverage | 45.45% |
Changes | 0 |
1 | <?php |
||
19 | trait ResponseHelperTrait |
||
20 | { |
||
21 | /** |
||
22 | * assertResponseEmptyContent |
||
23 | */ |
||
24 | protected static function assertResponseEmptyContent() |
||
25 | { |
||
26 | self::assertEmpty(self::getClient()->getResponse()->getContent()); |
||
|
|||
27 | } |
||
28 | |||
29 | /** |
||
30 | * @param string $code |
||
31 | */ |
||
32 | protected static function assertResponseCodeIs($code) |
||
33 | { |
||
34 | self::assertEquals($code, self::getClient()->getResponse()->getStatusCode()); |
||
35 | } |
||
36 | |||
37 | /** |
||
38 | * assertResponseCodeIsOK |
||
39 | */ |
||
40 | 15 | protected static function assertResponseCodeIsOK() |
|
43 | 15 | } |
|
44 | |||
45 | /** |
||
46 | * @return Response |
||
47 | */ |
||
48 | 21 | protected static function getResponse(): Response |
|
51 | } |
||
52 | } |
||
53 |