Example #1
0
 public function testFastAck()
 {
     $this->client->addJob("test_queue", "body", 1000);
     $job1 = $this->client->getJob("test_queue");
     $this->client->fastAckById($job1->getId());
     $job2 = $this->client->getJob("test_queue", array('TIMEOUT' => 10));
     $this->assertNull($job2, "No more jobs");
 }