Total Complexity | 4 |
Total Lines | 26 |
Duplicated Lines | 0 % |
Changes | 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 |
||
14 | } |
||
15 | |||
16 | /** @Then in the json, :path should be greater than or equal to :expected */ |
||
17 | final public function the_json_path_should_be_greater_or_equal_than(string $path, int $expected): void |
||
20 | } |
||
21 | |||
22 | /** @Then in the json, :path should be less than :expected */ |
||
23 | final public function the_json_path_should_be_less_than(string $path, int $expected): void |
||
24 | { |
||
25 | Assert::lessThan($this->getValue($path), $expected); |
||
26 | } |
||
27 | |||
28 | /** @Then in the json, :path should be less than or equal to :expected */ |
||
29 | final public function the_json_path_should_be_less_or_equal_than(string $path, int $expected): void |
||
32 | } |
||
33 | } |
||
34 |