%PDF-1.7 GIF89;
| Server IP : 172.66.157.178 / Your IP : 172.16.20.3 Web Server : Apache/2.4.25 (Debian) System : Linux f64a392e70de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 User : application ( 1000) PHP Version : 5.6.40 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /usr/local/lib/php/test/mongodb/tests/bulk/ |
Upload File : |
--TEST--
MongoDB\Driver\BulkWrite debug output before execution
--FILE--
<?php
$tests = [
[],
['ordered' => true],
['ordered' => false],
['bypassDocumentValidation' => true],
['bypassDocumentValidation' => false],
];
foreach ($tests as $options) {
var_dump(new MongoDB\Driver\BulkWrite($options));
}
?>
===DONE===
<?php exit(0); ?>
--EXPECTF--
object(MongoDB\Driver\BulkWrite)#%d (%d) {
["database"]=>
NULL
["collection"]=>
NULL
["ordered"]=>
bool(true)
["bypassDocumentValidation"]=>
NULL
["executed"]=>
bool(false)
["server_id"]=>
int(0)
["write_concern"]=>
NULL
}
object(MongoDB\Driver\BulkWrite)#%d (%d) {
["database"]=>
NULL
["collection"]=>
NULL
["ordered"]=>
bool(true)
["bypassDocumentValidation"]=>
NULL
["executed"]=>
bool(false)
["server_id"]=>
int(0)
["write_concern"]=>
NULL
}
object(MongoDB\Driver\BulkWrite)#%d (%d) {
["database"]=>
NULL
["collection"]=>
NULL
["ordered"]=>
bool(false)
["bypassDocumentValidation"]=>
NULL
["executed"]=>
bool(false)
["server_id"]=>
int(0)
["write_concern"]=>
NULL
}
object(MongoDB\Driver\BulkWrite)#%d (%d) {
["database"]=>
NULL
["collection"]=>
NULL
["ordered"]=>
bool(true)
["bypassDocumentValidation"]=>
bool(true)
["executed"]=>
bool(false)
["server_id"]=>
int(0)
["write_concern"]=>
NULL
}
object(MongoDB\Driver\BulkWrite)#%d (%d) {
["database"]=>
NULL
["collection"]=>
NULL
["ordered"]=>
bool(true)
["bypassDocumentValidation"]=>
bool(false)
["executed"]=>
bool(false)
["server_id"]=>
int(0)
["write_concern"]=>
NULL
}
===DONE===