public function getDefault($option) { if (isset($this->handlers[$option])) { $handler = $this->handlers[$option]; $handler = new $handler(); return $handler->getDefault($this); } }
/** * @group disconnected */ public function testReturnsNullAsDefaultValueForUndefinedOption() { $options = new Options(); $this->assertNull($options->getDefault('unknown')); }