--TEST-- AMQPConnection setVhost --SKIPIF-- --FILE-- setHost(getenv('PHP_AMQP_HOST')); var_dump($cnn->getVhost()); $cnn->setVhost('nonexistent'); var_dump($cnn->getVhost()); --EXPECTF-- string(1) "/" string(11) "nonexistent"