Example #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());
 }
Example #2
0
 /**
  * Return the status of the current job.
  *
  * @return int The status of the job as one of the Resque_Job_Status constants.
  */
 public function getStatus()
 {
     $status = new Status($this->payload['id']);
     return $status->get();
 }