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