Skip to content

Commit 9cb40ae

Browse files
committed
Merge pull request #423
2 parents 6f580e7 + eeb962c commit 9cb40ae

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
--TEST--
2+
MongoDB\Driver\BulkWrite::delete() with invalid options
3+
--FILE--
4+
<?php
5+
6+
require_once __DIR__ . '/../utils/tools.php';
7+
8+
$bulk = new MongoDB\Driver\BulkWrite;
9+
10+
echo throws(function() use ($bulk) {
11+
$bulk->update([], [], ['collation' => 1]);
12+
}, 'MongoDB\Driver\Exception\InvalidArgumentException'), "\n";
13+
14+
?>
15+
===DONE===
16+
<?php exit(0); ?>
17+
--EXPECT--
18+
OK: Got MongoDB\Driver\Exception\InvalidArgumentException
19+
Expected "collation" option to be array or object, integer given
20+
===DONE===

0 commit comments

Comments
 (0)