Ejemplo n.º 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));
 }
Ejemplo n.º 2
0
 function get_subcommands()
 {
     Utils\loadAllCommands();
     return parent::get_subcommands();
 }
Ejemplo n.º 3
0
 /**
  * Returns all subcommands of the root command
  *
  * @return Subcommand[]
  */
 function getSubcommands()
 {
     Utils\loadAllCommands();
     $subcommands = parent::getSubcommands();
     return $subcommands;
 }