| Total Complexity | 4 |
| Total Lines | 33 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types=1); |
||
| 6 | trait ComparisonTrait |
||
| 7 | { |
||
| 8 | abstract protected function getValue(?string $path); |
||
| 9 | |||
| 10 | /** @Then in the json, :path should be greater than :expected */ |
||
| 11 | final public function the_json_path_should_be_greater_than(string $path, int $expected): void |
||
| 15 | ; |
||
| 16 | } |
||
| 17 | |||
| 18 | /** @Then in the json, :path should be greater than or equal to :expected */ |
||
| 19 | final public function the_json_path_should_be_greater_or_equal_than(string $path, int $expected): void |
||
| 23 | ; |
||
| 24 | } |
||
| 25 | |||
| 26 | /** @Then in the json, :path should be less than :expected */ |
||
| 27 | final public function the_json_path_should_be_less_than(string $path, int $expected): void |
||
| 28 | { |
||
| 29 | Assert::that($this->getValue($path)) |
||
| 30 | ->lessThan($expected) |
||
| 31 | ; |
||
| 32 | } |
||
| 33 | |||
| 34 | /** @Then in the json, :path should be less than or equal to :expected */ |
||
| 35 | final public function the_json_path_should_be_less_or_equal_than(string $path, int $expected): void |
||
| 39 | ; |
||
| 40 | } |
||
| 42 |