Page Menu
Home
Phabricator (Chris)
Search
Configure Global Search
Log In
Files
F631885
bulkwrite-debug-002.phpt
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None
bulkwrite-debug-002.phpt
View Options
--TEST--
MongoDB\Driver\BulkWrite debug output after execution
--SKIPIF--
<?php require __DIR__ . "/../utils/basic-skipif.inc"; ?>
<?php skip_if_not_live(); ?>
<?php skip_if_not_clean(); ?>
--FILE--
<?php
require_once __DIR__ . "/../utils/basic.inc";
$manager = create_test_manager();
$tests = [
[],
['session' => $manager->startSession()],
];
foreach ($tests as $options) {
$bulk = new MongoDB\Driver\BulkWrite();
$bulk->insert(['foo' => 'bar']);
$manager->executeBulkWrite(NS, $bulk, $options);
var_dump($bulk);
}
?>
===DONE===
<?php exit(0); ?>
--EXPECTF--
object(MongoDB\Driver\BulkWrite)#%d (%d) {
["database"]=>
%s
["collection"]=>
%s
["ordered"]=>
bool(true)
["bypassDocumentValidation"]=>
NULL
["executed"]=>
bool(true)
["server_id"]=>
int(%d)
["session"]=>
NULL
["write_concern"]=>
NULL
}
object(MongoDB\Driver\BulkWrite)#%d (%d) {
["database"]=>
%s
["collection"]=>
%s
["ordered"]=>
bool(true)
["bypassDocumentValidation"]=>
NULL
["executed"]=>
bool(true)
["server_id"]=>
int(%d)
["session"]=>
object(MongoDB\Driver\Session)#%d (%d) {
%a
}
["write_concern"]=>
NULL
}
===DONE===
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Nov 15, 1:02 PM (6 h, 27 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
152354
Default Alt Text
bulkwrite-debug-002.phpt (1 KB)
Attached To
Mode
R114 php-mongodb
Attached
Detach File
Event Timeline