public function getOptionValue($option, $default = '')
{
if (array_key_exists($option, $this->options)) {
return $this->options[$option];
}
return $default;
}
public function testBoolOptions() { $argv = array('./dbpatch.php', 'update', '--force=true', '--skip=false'); $console = new DbPatch_Core_Console($argv); $this->assertTrue($console->getOptionValue('force')); $this->assertFalse($console->getOptionValue('skip')); }