Page MenuHomePhabricator (Chris)

query-ctor_error-003.phpt
No OneTemporary

Authored By
Unknown
Size
498 B
Referenced Files
None
Subscribers
None

query-ctor_error-003.phpt

--TEST--
MongoDB\Driver\Query construction (negative limit conflicts with false singleBatch)
--FILE--
<?php
require_once __DIR__ . '/../utils/tools.php';
echo throws(function() {
new MongoDB\Driver\Query([], ['limit' => -1, 'singleBatch' => false]);
}, 'MongoDB\Driver\Exception\InvalidArgumentException'), "\n";
?>
===DONE===
<?php exit(0); ?>
--EXPECT--
OK: Got MongoDB\Driver\Exception\InvalidArgumentException
Negative "limit" option conflicts with false "singleBatch" option
===DONE===

File Metadata

Mime Type
application/javascript
Expires
Sun, Nov 15, 6:34 AM (1 d, 2 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
152123
Default Alt Text
query-ctor_error-003.phpt (498 B)

Event Timeline