Page Menu
Home
Phabricator (Chris)
Search
Configure Global Search
Log In
Files
F630901
bulkwrite-insert_error-004.phpt
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Authored By
Unknown
Size
522 B
Referenced Files
None
Subscribers
None
bulkwrite-insert_error-004.phpt
View Options
--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===
File Metadata
Details
Attached
Mime Type
application/javascript
Expires
Sun, Nov 15, 10:41 AM (1 d, 19 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
152276
Default Alt Text
bulkwrite-insert_error-004.phpt (522 B)
Attached To
Mode
R114 php-mongodb
Attached
Detach File
Event Timeline