public function getElement()
 {
     $element = new Zend_Form_Element_Text('foo');
     $element->setView($this->getView());
     $this->decorator->setElement($element);
     return $element;
 }
 public function setUp()
 {
     $element = new Zend_Form_Element_Text('foo');
     $element->setView(new Zend_View());
     $this->_decorator = new Robo47_Form_Decorator_Info();
     $this->_decorator->setElement($element);
 }
 /**
  * See {@link PHPUnit_Framework_TestCase::setUp()} for details.
  */
 protected function setUp()
 {
     parent::setUp();
     // Usually a captcha element is rendered by the decorator,
     // but for testing a text field is just as well.
     // Using a text field avoids a dependency to the session.
     $element = new Zend_Form_Element_Text('my_captcha');
     $element->setAttrib('id', 'my-id');
     // Simulate a HtmlTag ID that is based on the element name (as configured
     // in the loadDefaultDecorators() mthod of the captcha element).
     $element->getDecorator('HtmlTag')->setOption('id', $element->getName() . '-element');
     $element->setView(new Zend_View());
     $this->decorator = new Mol_Form_Decorator_Captcha_Word();
     $this->decorator->setElement($element);
 }