--TEST-- MongoDB\Driver\ServerDescription debug output --SKIPIF-- --FILE-- selectServer(new MongoDB\Driver\ReadPreference('primary')); var_dump($server->getServerDescription()); ?> ===DONE=== --EXPECTF-- object(MongoDB\Driver\ServerDescription)#%d (%d) { ["host"]=> string(%d) "%s" ["port"]=> int(%d) ["type"]=> string(%d) "%r(Standalone|Mongos|RSPrimary|LoadBalancer)%r" ["hello_response"]=> array(%d) {%A } ["last_update_time"]=> %r(string\(\d+\) "\d+"|int\(\d+\))%r ["round_trip_time"]=> %r(NULL|int\(\d+\))%r } ===DONE===