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