File manager - Edit - /opt/cpanel/ea-php74/root/usr/share/tests/pecl/mongodb/tests/bulk/bulkwrite-insert_error-004.phpt
Back
--TEST-- MongoDB\Driver\BulkWrite::insert() prohibits PackedArray for document --FILE-- <?php require_once __DIR__ . '/../utils/basic.inc'; $bulk = new MongoDB\Driver\BulkWrite; echo throws(function() use ($bulk) { $bulk->insert(MongoDB\BSON\PackedArray::fromPHP([])); }, MongoDB\Driver\Exception\UnexpectedValueException::class), "\n"; ?> ===DONE=== <?php exit(0); ?> --EXPECT-- OK: Got MongoDB\Driver\Exception\UnexpectedValueException MongoDB\BSON\PackedArray cannot be serialized as a root document ===DONE===
| ver. 1.4 |
Github
|
.
| PHP 8.2.30 | Generation time: 0 |
proxy
|
phpinfo
|
Settings