Ejemplo n.º 1
0
 public function testAllowsSettingThemeOptionOnServiceObject()
 {
     $captcha = new Zend_Captcha_ReCaptcha();
     $captcha->setOption('theme', 'black');
     $this->assertEquals('black', $captcha->getService()->getOption('theme'));
 }
Ejemplo n.º 2
0
 /**
  * @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'));
 }