| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 31 | 2 | public function verifyPositive(callable $callable, array $arguments, float $timeInSeconds): bool |
|
| 32 | { |
||
| 33 | 2 | $elapsedTime = $this->bench($callable, $arguments); |
|
| 34 | |||
| 35 | 2 | if (false === $timeInSeconds > $elapsedTime) { |
|
| 36 | 1 | return true; |
|
| 37 | } |
||
| 38 | |||
| 39 | 1 | throw TimeMatcherException::tooFastMatcherException( |
|
| 40 | 1 | $this->presenter, |
|
| 41 | $elapsedTime, |
||
| 42 | $timeInSeconds |
||
| 43 | ); |
||
| 46 |