public function testVerifyWithMissingResponseField() { $this->reCaptcha->setPrivateKey($this->privateKey); $this->reCaptcha->setIp('127.0.0.1'); $response = $this->reCaptcha->verify('challenge', ''); $this->assertFalse($response->getStatus()); }
public function testVerifyWithMissingResponseField() { $this->setExpectedException('Zend\\Service\\ReCaptcha\\Exception'); $this->reCaptcha->setPrivateKey($this->privateKey); $this->reCaptcha->setIp('127.0.0.1'); $this->reCaptcha->verify('challenge', ''); }