public function testPutJob() { $beanstalk = new Beanstalk(); $beanstalk->useTube('test'); $job = new Job(); $job->setData(['foo' => 23, 'bar' => 42]); $this->assertNull($job->getId()); $beanstalk->putJob($job); $this->assertNotNull($job->getId()); }