Example #1
0
 protected function getDefaultCommands()
 {
     $defaultCommands = parent::getDefaultCommands();
     $defaultCommands[] = new InitCommand();
     $defaultCommands[] = new RequireCommand();
     $defaultCommands[] = new ShowCommand();
     // test suite commands
     $defaultCommands[] = new PhpUnitCommand();
     $defaultCommands[] = new BehatCommand();
     // travis ci command
     $defaultCommands[] = TravisCiCommandFactory::createCommand($this->getDefaultHelperSet());
     return $defaultCommands;
 }
 public function test_command_can_be_created()
 {
     $actual = TravisCiCommandFactory::createCommand(new HelperSet(['question' => $this->getMock(QuestionHelper::class), 'package' => $this->getMock(PackageHelper::class)]));
     self::assertInstanceOf(TravisCiCommand::class, $actual);
 }