select() public method

append the select
Since: 2.6.0
public select ( array $optionArray = [], array $attributeArray = [] ) : Form
$optionArray array options of the select
$attributeArray array attributes of the select
return Form
 /**
  * testSelect
  *
  * @param array $optionArray
  * @param array $attributeArray
  * @param array $expect
  *
  * @dataProvider providerSelect
  *
  * @since 2.6.0
  */
 public function testSelect($optionArray = array(), $attributeArray = array(), $expect = array())
 {
     /* setup */
     $form = new Html\Form($this->_registry, $this->_language);
     $form->init();
     $form->select($optionArray, $attributeArray);
     /* actual */
     $actual = $form;
     /* compare */
     $this->assertEquals($expect, $actual);
 }