📁 File Manager Pro
v10.0.3 | PHP: 8.2.31
Server: LiteSpeed
2026-07-01 21:00:18
📂
/ (Root)
/
opt
/
alt
/
tests
/
alt-php84-pecl-mongodb_1.20.0-2.el8
/
tests
📍 /opt/alt/tests/alt-php84-pecl-mongodb_1.20.0-2.el8/tests
🔄 Refresh
✏️
Editing: serverApi-construct-001.phpt
Read Only
--TEST-- MongoDB\Driver\ServerApi::__construct() --FILE-- <?php require_once __DIR__ . "/../utils/basic.inc"; $version = new MongoDB\Driver\ServerApi('1'); echo throws(function() { new MongoDB\Driver\ServerApi('no way'); }, 'MongoDB\Driver\Exception\InvalidArgumentException'), "\n"; ?> ===DONE=== <?php exit(0); ?> --EXPECT-- OK: Got MongoDB\Driver\Exception\InvalidArgumentException Server API version "no way" is not supported in this driver version ===DONE===
💾 Save Changes
❌ Cancel