Наследование: extends Symfony\Component\Console\Command\Command
Пример #1
0
 public function testTaskCommand()
 {
     $this->initialize();
     $this->deployer->tasks['task'] = new Task('task', function () {
     });
     $this->deployer->scenarios['task'] = new Scenario('task');
     $this->input->expects($this->any())->method('getOption')->will($this->returnValueMap([['parallel', null]]));
     $executor = $this->getMock('Deployer\\Executor\\ExecutorInterface');
     $executor->expects($this->once())->method('run');
     $command = new TaskCommand('task', null, $this->deployer);
     $command->executor = $executor;
     $command->run($this->input, $this->output);
 }