Example #1
0
 public function testAddFormelementDecorator()
 {
     $this->form->addElement('textarea');
     $this->form->addElement('multiselect');
     $this->form->addFormelementDecorator('label', 1);
     $formelements = $this->form->getFormelements();
     $textarea_element = $formelements[1];
     $decorators = $textarea_element->formelementdecorators;
     $this->assertTrue(is_array($decorators));
     $this->assertEqual(1, count($decorators));
     $this->assertTrue(isset($decorators['label']));
 }