コード例 #1
0
 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));
 }
コード例 #2
0
 protected function setupConsumer()
 {
     $this->mergeQueueOptions();
     parent::setupConsumer();
 }
コード例 #3
0
 /**
  * @expectedException \ErrorException
  */
 public function testLazyConnection()
 {
     $amqpLazyConnection = new AMQPLazyConnection('localhost', 123, 'lazy_user', 'lazy_password');
     $consumer = new Consumer($amqpLazyConnection, null);
     $consumer->getChannel();
 }