Пример #1
0
 public function testgetValues()
 {
     $this->form->addElement('textarea', array('value' => 'Some Text Inside The First Textarea'));
     $this->form->addElement('textarea', array('value' => 'More Text Inside The Second Textarea'));
     $values = $this->form->getValues();
     $this->assertTrue(is_array($values));
     $this->assertIdentical(count($values), 2);
     $expected_values = array('textarea-formelement-0' => 'Some Text Inside The First Textarea', 'textarea-formelement-1' => 'More Text Inside The Second Textarea');
     $this->assertIdentical($values, $expected_values);
 }