Exemplo n.º 1
0
 public function testStatusTrackingCanBeStopped()
 {
     Status::create('test');
     $status = new Status('test');
     $this->assertEquals(Status::STATUS_WAITING, $status->get());
     $status->stop();
     $this->assertFalse($status->get());
 }
Exemplo n.º 2
0
 /**
  * Return the status of the current job.
  *
  * @return int The status of the job as one of the Status constants.
  */
 public function getStatus()
 {
     $status = new Status($this->payload['id']);
     return $status->get();
 }