/**
  * {@inheritDoc}
  */
 public function send(Verification $verification)
 {
     $result = $this->telesign->verify($verification->getMsisdn(), $verification->getCode());
     if (empty($result) || !empty($result['errors'])) {
         throw new GatewayFailureException();
     }
 }
 /**
  * @param Verification $expectedVerification
  * @return bool
  */
 public function sendHaveBeenCalledWith(Verification $expectedVerification)
 {
     return $this->sendHaveBeenCalled() && $this->sentVerification->equals($expectedVerification);
 }