예제 #1
0
 public function testPeekDelayedCommand()
 {
     $testJobId = self::$pheanstalk->putInTube('another-test-tube', serialize('foo'), 1024, 23000);
     $result = `{$this->binPath} peek -t another-test-tube -s delayed`;
     $this->assertRegexp('(ID: ' . $testJobId . ')', $result);
 }
예제 #2
0
 /**
  * @param Job $job
  */
 public function addJob(Job $job)
 {
     $this->pheanstalk->putInTube('shopware', serialize($job));
 }