public function testSelectStaticWithSetDefaultElementNotPresent()
{
$this->specify("selectStatic with setDefault and element not present returns invalid HTML", function () {
Tag::resetInput();
$params = ['x_name', 'name' => 'x_other', 'class' => 'x_class', 'size' => '10'];
$options = ['A' => 'Active', 'I' => 'Inactive'];
$expected = '<select id="x_name" name="x_other" class="x_class" size="10">' . PHP_EOL . chr(9) . '<option value="A">Active</option>' . PHP_EOL . chr(9) . '<option value="I">Inactive</option>' . PHP_EOL . '</select>';
Tag::setDefault('x_name', 'Z');
$actual = Tag::selectStatic($params, $options);
Tag::resetInput();
expect($actual)->equals($expected);
});
}