public function testLabelGeneration() {
$result = $this->form->label('next', 'Enter the next value >>');
$this->assertTags($result, array(
'label' => array('for' => 'next'),
'Enter the next value >>',
'/label'
));
$result = $this->form->label('user_name');
$this->assertTags($result, array(
'label' => array('for' => 'user_name'),
'User Name',
'/label'
));
$result = $this->form->label('first_name', array(
'First Name' => array('id' => 'first_name_label')
));
$this->assertTags($result, array(
'label' => array('for' => 'first_name', 'id' => 'first_name_label'),
'First Name',
'/label'
));
$result = $this->form->label('first_name', array(
null => array('id' => 'first_name_label')
));
$this->assertTags($result, array(
'label' => array('for' => 'first_name', 'id' => 'first_name_label'),
'First Name',
'/label'
));
}