public function reserveFromTube($tube, $timeout = null)
{
$this->watch($this->getTubeName($tube));
return parent::reserve($timeout);
}
public function testShouldPutAndReserve() { $this->client->putInTube(self::TUBE_NAME, 'testPutInTube'); $job = $this->client->reserveFromTube(self::TUBE_NAME); $this->assertNotEmpty($job); $this->assertInstanceOf(self::JOB_CLASS, $job); $this->assertTrue($job->delete()); }