/** * Sets the current status of this step * * @param BatchStatus $status the current status of this step * * @return $this */ public function setStatus(BatchStatus $status) { $this->status = $status->getValue(); return $this; }
public function testSetValue() { $batchStatus = new BatchStatus(BatchStatus::UNKNOWN); $batchStatus->setValue(BatchStatus::FAILED); $this->assertEquals(BatchStatus::FAILED, $batchStatus->getValue()); }