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