/** * If data source contains explicitly provided null values, those should be used * @link http://pear.php.net/bugs/bug.php?id=20295 */ public function testBug20295() { $form = new HTML_QuickForm2('bug20295'); $hs = $form->addHierselect('hs')->loadOptions(array($this->_primary, $this->_secondary))->setValue(array(1, 12)); $form->addDataSource(new HTML_QuickForm2_DataSource_Array(array('hs' => null))); $this->assertNull($hs->getValue()); }