Beispiel #1
0
 public function testCaptchaShouldBeConfigurableViaConfigObject()
 {
     $options = array('name' => 'foo', 'sessionClass' => 'Zend_Captcha_FigletTest_SessionContainer', 'wordLen' => 6, 'timeout' => 300);
     $config = new Zend_Config($options);
     $captcha = new Zend_Captcha_Figlet($config);
     $test = $captcha->getOptions();
     $this->assertEquals($options, $test);
 }