| 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 |
||
| 16 | 2 | public function verifyNegative(callable $callable, array $arguments, float $timeInSeconds): bool |
|
| 17 | { |
||
| 18 | 2 | $elapsedTime = $this->bench($callable, $arguments); |
|
| 19 | |||
| 20 | 2 | if (false === $timeInSeconds <= $elapsedTime) { |
|
| 21 | 1 | return true; |
|
| 22 | } |
||
| 23 | |||
| 24 | 1 | throw TimeMatcherException::tooSlowMatcherException( |
|
| 25 | 1 | $this->presenter, |
|
| 26 | $elapsedTime, |
||
| 27 | $timeInSeconds |
||
| 28 | ); |
||
| 46 |