/** * Test global. * * @return void * * @since 1.0 */ public function testGlobal() { $this->command->addOption('k', 'default', 'k desc', Option::IS_GLOBAL)->addCommand('kkk'); $kkk = $this->command->getChild('kkk'); $options = $kkk->getAllOptions(); $this->assertArrayHasKey('k', $options); }