public function __construct(AMQPConnection $conn) { parent::__construct($conn); $this->setQueueOptions(array('name' => '', 'passive' => false, 'durable' => false, 'exclusive' => true, 'auto_delete' => true, 'nowait' => false, 'arguments' => null, 'ticket' => null)); }
protected function setupConsumer() { $this->mergeQueueOptions(); parent::setupConsumer(); }
/** * @expectedException \ErrorException */ public function testLazyConnection() { $amqpLazyConnection = new AMQPLazyConnection('localhost', 123, 'lazy_user', 'lazy_password'); $consumer = new Consumer($amqpLazyConnection, null); $consumer->getChannel(); }