/**
  * @group ZF-12086
  */
 public function testAllowsSettingCustomTranslationsOptionOnServiceObject()
 {
     $options = array('instructions_visual' => 'Wpisz dwa wyrazy:', 'instructions_audio' => 'Wpisz uslyszany tekst:');
     $captcha = new Zend_Captcha_ReCaptcha();
     $captcha->setOption('custom_translations', $options);
     $this->assertEquals($options, $captcha->getService()->getOption('custom_translations'));
 }
Exemple #2
0
 public function testAllowsSettingThemeOptionOnServiceObject()
 {
     $captcha = new Zend_Captcha_ReCaptcha();
     $captcha->setOption('theme', 'black');
     $this->assertEquals('black', $captcha->getService()->getOption('theme'));
 }
Exemple #3
0
 public function testShouldAllowSpecifyingServiceObject()
 {
     $captcha = new Zend_Captcha_ReCaptcha();
     $try = new Zend_Service_ReCaptcha();
     $this->assertNotSame($captcha->getService(), $try);
     $captcha->setService($try);
     $this->assertSame($captcha->getService(), $try);
 }