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); }
/** * @param Job $job */ public function addJob(Job $job) { $this->pheanstalk->putInTube('shopware', serialize($job)); }