public function testRecaptchaServiceOptions()
 {
     $options = array('service_options' => array('adapter' => 'Zend\\Http\\Client\\Adapter\\Curl'));
     $_captcha = new ReCaptcha($options);
     $adapter = $_captcha->getService()->getHttpClient()->getAdapter();
     $this->assertInstanceOf('Zend\\Http\\Client\\Adapter\\Curl', $adapter);
 }
Example #2
0
 public function testServiceInstance()
 {
     $this->assertInstanceOf('NoCaptcha\\Service\\ReCaptcha', $this->captcha->getService());
 }