📁 File Manager Pro
v10.0.3 | PHP: 7.4.33
Server: LiteSpeed
2026-06-26 15:05:19
📂
/ (Root)
/
opt
/
alt
/
tests
/
alt-php85-pecl-mongodb_2.3.1-1.el8
/
tests
📍 /opt/alt/tests/alt-php85-pecl-mongodb_2.3.1-1.el8/tests
🔄 Refresh
✏️
Editing: manager-executeCommand_error-003.phpt
Read Only
--TEST-- MongoDB\Driver\Manager::executeCommand() connection error --FILE-- <?php require_once __DIR__ . "/../utils/basic.inc"; $manager = create_test_manager("mongodb://localhost:44444/?serverselectiontimeoutms=10"); $command = new MongoDB\Driver\Command(['ping' => 1]); echo throws(function() use($manager, $command) { $manager->executeCommand('test', $command); }, "MongoDB\Driver\Exception\ConnectionTimeoutException"), "\n"; ?> ===DONE=== <?php exit(0); ?> --EXPECTF-- OK: Got MongoDB\Driver\Exception\ConnectionTimeoutException No suitable servers found (`serverSelectionTryOnce` set): %s ===DONE===
💾 Save Changes
❌ Cancel