Ejemplo n.º 1
0
 public function testSetAndGetPublicAndPrivateKeys()
 {
     $captcha = new Zend_Captcha_ReCaptcha();
     $pubKey = 'pubKey';
     $privKey = 'privKey';
     $captcha->setPubkey($pubKey)->setPrivkey($privKey);
     $this->assertSame($pubKey, $captcha->getPubkey());
     $this->assertSame($privKey, $captcha->getPrivkey());
     $this->assertSame($pubKey, $captcha->getService()->getPublicKey());
     $this->assertSame($privKey, $captcha->getService()->getPrivateKey());
 }