--TEST-- AMQPConnection setPort with string --SKIPIF-- --FILE-- setHost(getenv('PHP_AMQP_HOST')); $port = '12345'; var_dump($cnn->setPort($port)); var_dump($cnn->getPort()); var_dump($port); ?> --EXPECT-- NULL int(12345) string(5) "12345"