public function testMultiselected() {
$expected = array(
'select' => array('name' => 'numbers[]', 'id' => 'Numbers', 'multiple' => 'multiple'),
array('option' => array('value' => '1', 'selected' => 'selected')),
'first',
'/option',
array('option' => array('value' => '2')),
'second',
'/option',
array('option' => array('value' => '3', 'selected' => 'selected')),
'third',
'/option',
array('option' => array('value' => '4', 'selected' => 'selected')),
'fourth',
'/option',
'/select'
);
$list = array(1 => 'first', 2 => 'second', 3 => 'third', 4 => 'fourth');
$options = array('value' => array(1, 3, 4), 'multiple' => true);
$result = $this->form->select('numbers', $list, $options);
$this->assertTags($result, $expected);
}