Copyright 2009-2016 Horde LLC (http://www.horde.org/)
See the enclosed file COPYING for license information (LGPL). If you
did not receive this file, see http://www.horde.org/licenses/lgpl21.
public function testNoNullOverride() { $configs = new Components_Configs(); $configs->addConfigurationType($this->_getAConfig()); $configs->addConfigurationType($this->_getNullConfig()); $config = $configs->getOptions(); $this->assertEquals('A', $config['a']); }
private static function _prepareConfig(Horde_Argv_Parser $parser) { $config = new Components_Configs(); $config->addConfigurationType(new Components_Config_Cli($parser)); $config->unshiftConfigurationType(new Components_Config_File($config->getOption('config'))); return $config; }