array( 'commands' => array( 'Project\Command\MyCustomCommand')))); $application = new Application(); $application->registerCustomCommands(); try { $application->find('myProject:myCommand'); } catch (\Exception $e) { $this->fail($e->getMessage()); } } }