'; $this->assertEquals( $result, PMA\libraries\Util::getDropdown( $name, $choices, $active_choice, $id ) ); } /** * Test for getDropdown * * @return void */ function testGetDropdown() { $name = "&test_dropdown_name"; $choices = array("value_1" => "label_1", "value&_2\"" => "label_2"); $active_choice = null; $id = "test_<dropdown>_name"; $result = ''; $this->assertEquals( $result, PMA\libraries\Util::getDropdown( $name, $choices, $active_choice, $id ) ); } /** * Test for getDropdown * * @return void */ function testGetDropdownWithActive() { $name = "&test_dropdown_name"; $choices = array("value_1" => "label_1", "value&_2\"" => "label_2"); $active_choice = "value&_2\""; $id = "test_<dropdown>_name"; $result = ''; $this->assertEquals( $result, PMA\libraries\Util::getDropdown( $name, $choices, $active_choice, $id ) ); } }