public function testVerifyWithMissingResponseField()
 {
     $this->reCaptcha->setPrivateKey($this->privateKey);
     $this->reCaptcha->setIp('127.0.0.1');
     $response = $this->reCaptcha->verify('challenge', '');
     $this->assertFalse($response->getStatus());
 }
Ejemplo n.º 2
0
 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', '');
 }