| Conditions | 4 |
| Paths | 4 |
| Total Lines | 16 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 10 |
| CRAP Score | 4 |
| Changes | 0 | ||
| 1 | <?php |
||
| 32 | 8 | public function verify(Expectation $expectation) |
|
| 33 | { |
||
| 34 | 8 | foreach ($this->methodCalls as $methodCall) { |
|
| 35 | 7 | if ($methodCall->getMethod() !== $expectation->getName()) { |
|
| 36 | 1 | continue; |
|
| 37 | } |
||
| 38 | |||
| 39 | 7 | if (!$expectation->matchArgs($methodCall->getArgs())) { |
|
| 40 | 2 | continue; |
|
| 41 | } |
||
| 42 | |||
| 43 | 7 | $expectation->verifyCall($methodCall->getArgs()); |
|
| 44 | 8 | } |
|
| 45 | |||
| 46 | 8 | $expectation->verify(); |
|
| 47 | 8 | } |
|
| 48 | } |
||
| 49 |