public function verify(Expectation $expectation)
 {
     foreach ($this->methodCalls as $methodCall) {
         if ($methodCall->getMethod() !== $expectation->getName()) {
             continue;
         }
         if (!$expectation->matchArgs($methodCall->getArgs())) {
             continue;
         }
         $expectation->verifyCall($methodCall->getArgs());
     }
     $expectation->verify();
 }