관리-도구
편집 파일: server-getInfo-001.phpt
--TEST-- MongoDB\Driver\Server::getInfo() --SKIPIF-- <?php require __DIR__ . "/../utils/basic-skipif.inc"; ?> <?php skip_if_not_live(); ?> --FILE-- <?php require_once __DIR__ . "/../utils/basic.inc"; $manager = create_test_manager(); try{ var_dump($manager->selectServer(new MongoDB\Driver\ReadPreference(MongoDB\Driver\ReadPreference::RP_PRIMARY))->getInfo()); } catch (Exception $e) {} ?> ===DONE=== <?php exit(0); ?> --EXPECTF-- array(%d) { %a } ===DONE===