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