Esempio n. 1
0
 public function testLargeJobData()
 {
     $this->setupTube('integration-test');
     $length = 8192 * 2;
     $data = str_repeat('.', $length);
     $this->beanstalk->put($data);
     $jobData = $this->beanstalk->reserve();
     $this->beanstalk->delete($jobData['id']);
     $this->assertEquals($length, strlen($jobData['body']));
 }
Esempio n. 2
0
 public function testPut()
 {
     $this->socket->expects($this->atLeastOnce())->method('read')->willReturn('INSERTED 123');
     $this->beanstalk->put('foo-bar');
 }