/**
  * @inheritDoc
  */
 public function isSuccessful()
 {
     if ($this->symfonyProcess->isSuccessful()) {
         echo "{$this->job->jobName()}: Has finished without errors.\n";
     }
     return $this->symfonyProcess->isSuccessful();
 }
 /**
  * @inheritdoc
  */
 public function runProcess(Job $job, $processCommand)
 {
     $process = new Process($processCommand);
     $process->setTimeout(720);
     $process->start(function ($type, $buffer) use($job) {
         if (\Symfony\Component\Process\Process::ERR === $type) {
             echo "{$job->jobName()}: STDERR > " . $buffer;
         } else {
             echo "{$job->jobName()}: STDOUT > " . $buffer;
         }
     });
     return new SymfonyProcess($job, $process);
 }
 function let(Job $job, Cache $cache, Variable $variable, Stage $stage)
 {
     $job->jobName()->willReturn('phpspec_php_5_6');
     $this->jobs = [$job];
     $this->stages = [$stage];
     $this->variables = [$variable];
     $this->cache = $cache;
     $this->beConstructedWith($this->stages, $cache, $this->variables, $this->jobs);
 }