| Conditions | 1 |
| Paths | 1 |
| Total Lines | 8 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 13 | 1 | public function validate(): void |
|
| 14 | { |
||
| 15 | 1 | Assert::that($this->getMethod())->choice(self::getMethods()); |
|
| 16 | 1 | Assert::that($this->getUri())->string()->startsWith('/'); |
|
| 17 | 1 | Assert::that($this->getBody())->isArray(); |
|
| 18 | 1 | Assert::that($this->getResponseClass())->implementsInterface(ResponseInterface::class); |
|
| 19 | 1 | Assert::that($this->getOptions())->isArray(); |
|
| 20 | 1 | } |
|
| 21 | |||
| 43 |