public function testSelectWithEmptyOption() {
$result = $this->form->select('numbers', array('zero', 'first', 'second'), array(
'empty' => true
));
$this->assertTags($result, array(
'select' => array('id' => 'Numbers', 'name' => 'numbers'),
array('option' => array('value' => '', 'selected' => 'selected')),
'/option',
array('option' => array('value' => '0')),
'zero',
'/option',
array('option' => array('value' => '1')),
'first',
'/option',
array('option' => array('value' => '2')),
'second',
'/option',
'/select'
));
$result = $this->form->select('numbers', array('zero', 'first', 'second'), array(
'empty' => '> Make a selection'
));
$this->assertTags($result, array(
'select' => array('name' => 'numbers', 'id' => 'Numbers'),
array('option' => array('value' => '', 'selected' => 'selected')),
'> Make a selection',
'/option',
array('option' => array('value' => '0')),
'zero',
'/option',
array('option' => array('value' => '1')),
'first',
'/option',
array('option' => array('value' => '2')),
'second',
'/option',
'/select'
));
}