📁 File Manager Pro
v10.0.3 | PHP: 8.2.31
Server: LiteSpeed
2026-07-02 17:19:35
📂
/ (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: serverApi-bsonserialize-002.phpt
Read Only
--TEST-- MongoDB\Driver\ServerApi::bsonSerialize() returns an object --FILE-- <?php require_once __DIR__ . '/../utils/basic.inc'; $tests = [ new MongoDB\Driver\ServerApi('1'), new MongoDB\Driver\ServerApi('1', true), new MongoDB\Driver\ServerApi('1', null, true), new MongoDB\Driver\ServerApi('1', false, false), ]; foreach ($tests as $test) { var_dump($test->bsonSerialize()); } ?> ===DONE=== <?php exit(0); ?> --EXPECTF-- object(stdClass)#%d (%d) { ["version"]=> string(1) "1" } object(stdClass)#%d (%d) { ["version"]=> string(1) "1" ["strict"]=> bool(true) } object(stdClass)#%d (%d) { ["version"]=> string(1) "1" ["deprecationErrors"]=> bool(true) } object(stdClass)#%d (%d) { ["version"]=> string(1) "1" ["strict"]=> bool(false) ["deprecationErrors"]=> bool(false) } ===DONE===
💾 Save Changes
❌ Cancel