📁 File Manager Pro
v10.0.3 | PHP: 7.4.33
Server: LiteSpeed
2026-06-26 15:05:11
📂
/ (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: bulkwritecommand-ctor-comment_error-001.phpt
Read Only
--TEST-- MongoDB\Driver\BulkWriteCommand::__construct() comment option bsonSerialize() exception --FILE-- <?php require_once __DIR__ . "/../utils/basic.inc"; class Comment implements MongoDB\BSON\Serializable { #[\ReturnTypeWillChange] public function bsonSerialize(): array { throw new Exception('phongo_zval_to_bson_value fails'); } } echo throws(function() { new MongoDB\Driver\BulkWriteCommand(['comment' => new Comment()]); }, Exception::class), "\n"; ?> ===DONE=== <?php exit(0); ?> --EXPECT-- OK: Got Exception phongo_zval_to_bson_value fails ===DONE===
💾 Save Changes
❌ Cancel