public function testRegisterCustomCommand()
 {
     \Codeception\Configuration::append(array('extensions' => array('commands' => array('Codeception\\Command\\MyCustomCommand'))));
     $application = new Application();
     $application->registerCustomCommands();
     try {
         $application->find('myProject:myCommand');
     } catch (\Exception $e) {
         $this->fail($e->getMessage());
     }
 }
Exemple #2
0
 /**
  * Pass config variables that should be injected into global config.
  *
  * @param array $config
  */
 public function _reconfigure($config = [])
 {
     if (is_array($config)) {
         Config::append($config);
     }
 }