--TEST-- AMQPConnection setPassword --SKIPIF-- --FILE-- setHost(getenv('PHP_AMQP_HOST')); var_dump($cnn->getPassword()); $cnn->setPassword('nonexistent'); var_dump($cnn->getPassword()); --EXPECTF-- string(5) "guest" string(11) "nonexistent"