--TEST-- AMQPConnection constructor --SKIPIF-- --FILE-- setHost(getenv('PHP_AMQP_HOST')); $port = 12345; var_dump($cnn->setPort($port)); echo $cnn->getPort(), PHP_EOL; echo gettype($port), PHP_EOL; ?> --EXPECT-- NULL 12345 integer