/**
  * @param ExitStatus $exitStatus
  *
  * @return $this
  */
 public function setExitStatus(ExitStatus $exitStatus)
 {
     $this->exitStatus = $exitStatus;
     $this->exitCode = $exitStatus->getExitCode();
     $this->exitDescription = $exitStatus->getExitDescription();
     return $this;
 }
 public function testAddExitDescriptionToExistingDescription()
 {
     $status = new ExitStatus(ExitStatus::EXECUTING);
     $status->addExitDescription("Foo");
     $status->addExitDescription("Bar");
     $this->assertEquals("Foo;Bar", $status->getExitDescription());
 }