관리-도구
편집 파일: amqpconnection_setPort_string.phpt
--TEST-- AMQPConnection setPort with string --SKIPIF-- <?php if (!extension_loaded("amqp")) print "skip AMQP extension is not loaded"; elseif (!getenv("PHP_AMQP_HOST")) print "skip PHP_AMQP_HOST environment variable is not set"; ?> --FILE-- <?php $cnn = new AMQPConnection(); $cnn->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"