function it_adds_exit_code_to_the_same_status()
 {
     $this->beConstructedWith(ExitStatus::EXECUTING);
     $otherStatus = new ExitStatus(ExitStatus::EXECUTING);
     $anotherStatus = new ExitStatus(ExitStatus::EXECUTING);
     $this->setExitCode($otherStatus->getExitCode());
     $this->getExitCode()->shouldReturn($otherStatus->getExitCode());
 }
 /**
  * @param ExitStatus $exitStatus
  *
  * @return JobExecution
  */
 public function setExitStatus(ExitStatus $exitStatus)
 {
     $this->exitStatus = $exitStatus;
     $this->exitCode = $exitStatus->getExitCode();
     $this->exitDescription = $exitStatus->getExitDescription();
     return $this;
 }