/** * List parameters to test if list handling works correctly. * * @return array */ private function getListParams() { $params = array('awesome' => ' yes, no, on, off ', 'float' => ' 9001 ; 42 ; 4.2;0'); $definitions = array('awesome' => array('type' => 'boolean', 'islist' => true), 'text' => array('default' => array('bar'), 'islist' => true), 'float' => array('type' => 'float', 'islist' => true, 'delimiter' => ';')); $options = new Options(); $options->setLowercaseValues(true); $options->setTrimValues(true); $expected = array('awesome' => array(true, false, true, false), 'text' => array('bar'), 'float' => array(9001.0, 42.0, 4.2, 0.0)); return array($params, $definitions, $options, $expected); }