public function push($item, $eta = null)
{
$eta = QueueUtils::normalizeEta($eta);
if (!msg_send($this->getQueue(), $eta, $item, $this->serialize, false, $errorCode)) {
throw new QueueException($this, self::getErrorMessage($errorCode), $errorCode);
}
}
/** * @dataProvider provideItemsOfVariousTypes */ public function testSupportItemTypeWithSerializerLoose($item) { $handler = self::getHandler(); $key = $handler->getOption('key'); $queue = new SysVQueue($key, true); $queue->push($item); $this->assertEquals($item, $queue->pop()); }