--TEST-- MongoDB\Driver\Server::getLatency() returns a non-negative integer when set --SKIPIF-- --FILE-- selectServer(new MongoDB\Driver\ReadPreference('primary')); var_dump($server->getLatency()); ?> ===DONE=== --EXPECTF-- int(%d) ===DONE===