관리-도구
편집 파일: server-getLatency-001.phpt
--TEST-- MongoDB\Driver\Server::getLatency() returns a non-negative integer when set --SKIPIF-- <?php require __DIR__ . "/../utils/basic-skipif.inc"; ?> <?php skip_if_not_live(); ?> <?php skip_if_load_balanced(); ?> --FILE-- <?php require_once __DIR__ . "/../utils/basic.inc"; $manager = create_test_manager(); $server = $manager->selectServer(new MongoDB\Driver\ReadPreference('primary')); var_dump($server->getLatency()); ?> ===DONE=== <?php exit(0); ?> --EXPECTF-- int(%d) ===DONE===