Exemplo n.º 1
0
 public function close()
 {
     if ($this->isRunning() && $this->queue->isAutoDelete()) {
         $this->channel->queue_purge($this->queue->getName(), true);
     }
     parent::close();
 }
Exemplo n.º 2
0
 public function testQueueIsMarkedAsAutoDelete()
 {
     $queue = new Queue('my-queue', null, true);
     $this->assertTrue($queue->isAutoDelete());
     $this->assertFalse($queue->isDurable());
 }