Set the attributes of the label of the form element object.
public setLabelAttributes ( array $attribs ) : |
||
$attribs | array | |
return |
public function testSetAndGetLabelAttributes() { $e = new Element('text', 'email'); $e->setLabel('Email:'); $e->setLabelAttributes(array('class' => 'label-class')); $attribs = $e->getLabelAttributes(); $this->assertEquals('label-class', $attribs['class']); }