Page Menu
Home
Phabricator (Chris)
Search
Configure Global Search
Log In
Files
F629307
query-ctor_error-003.phpt
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Authored By
Unknown
Size
498 B
Referenced Files
None
Subscribers
None
query-ctor_error-003.phpt
View Options
--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
Details
Attached
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)
Attached To
Mode
R114 php-mongodb
Attached
Detach File
Event Timeline