mirror of
https://github.com/macintoshplus/mongo-php-driver.git
synced 2026-04-23 00:18:02 +02:00
23 lines
598 B
PHP
23 lines
598 B
PHP
--TEST--
|
|
MongoDB\Driver\Manager::executeBulkWrite() with empty BulkWrite
|
|
--SKIPIF--
|
|
<?php require __DIR__ . "/../utils/basic-skipif.inc"; ?>
|
|
<?php NEEDS('STANDALONE'); ?>
|
|
--FILE--
|
|
<?php
|
|
require_once __DIR__ . "/../utils/basic.inc";
|
|
|
|
$manager = new MongoDB\Driver\Manager(STANDALONE);
|
|
|
|
echo throws(function() use ($manager) {
|
|
$manager->executeBulkWrite(NS, new MongoDB\Driver\BulkWrite);
|
|
}, 'MongoDB\Driver\Exception\InvalidArgumentException'), "\n";
|
|
|
|
?>
|
|
===DONE===
|
|
<?php exit(0); ?>
|
|
--EXPECTF--
|
|
OK: Got MongoDB\Driver\Exception\InvalidArgumentException
|
|
Cannot do an empty bulk write
|
|
===DONE===
|