public function testSelectEscape() { $options = new FormOptions(); $options->add('foo & "bar"', '<spam> & <ham>'); $field = new FormSelect('key', 'id', 'name', '7', 'label', ['options' => $options]); $this->assertEquals("<select name=\"name\" id=\"id\">\n<option value=\"foo & "bar"\"><spam> & <ham></option>\n</select>", $field->getContent()); }