public function testLoadAllCommands() { $included_before = get_included_files(); Utils\loadAllCommands(); $included_after = get_included_files(); $this->assertTrue(count($included_before) < count($included_after)); }
function get_subcommands() { Utils\loadAllCommands(); return parent::get_subcommands(); }
/** * Returns all subcommands of the root command * * @return Subcommand[] */ function getSubcommands() { Utils\loadAllCommands(); $subcommands = parent::getSubcommands(); return $subcommands; }