Пример #1
0
 public function testSetAttributes()
 {
     $array = array('attr1' => 'val1', 'attr2' => true);
     $this->form->setAttributes($array);
     // via getter - returns string
     $this->assertEqual('val1', $this->form->getAttribute('attr1'));
     $this->assertEqual(true, $this->form->getAttribute('attr2'));
     unset($array);
     // @todo $attributes['form'] = array contains ['form']
 }