public function tearDown() { if ($this->channel) { $this->channel->queue_delete($this->queueName . '1'); $this->channel->close(); } if ($this->connection) { $this->connection->close(); } }