Page MenuHomePhabricator (Chris)

query-debug-001.phpt
No OneTemporary

Authored By
Unknown
Size
878 B
Referenced Files
None
Subscribers
None

query-debug-001.phpt

--TEST--
MongoDB\Driver\Query debug output
--FILE--
<?php
var_dump(new MongoDB\Driver\Query(
['a' => 123],
[
'limit' => 5,
'projection' => ['c' => 1],
'readConcern' => new MongoDB\Driver\ReadConcern(MongoDB\Driver\ReadConcern::LOCAL),
'skip' => 10,
'sort' => ['b' => -1],
]
));
?>
===DONE===
<?php exit(0); ?>
--EXPECTF--
object(MongoDB\Driver\Query)#%d (%d) {
["filter"]=>
object(stdClass)#%d (%d) {
["a"]=>
int(123)
}
["options"]=>
object(stdClass)#%d (%d) {
["limit"]=>
int(5)
["projection"]=>
object(stdClass)#%d (%d) {
["c"]=>
int(1)
}
["skip"]=>
int(10)
["sort"]=>
object(stdClass)#%d (%d) {
["b"]=>
int(-1)
}
}
["readConcern"]=>
object(MongoDB\Driver\ReadConcern)#%d (%d) {
["level"]=>
string(5) "local"
}
}
===DONE===

File Metadata

Mime Type
text/plain
Expires
Sun, Nov 15, 9:15 AM (1 d, 21 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
141520
Default Alt Text
query-debug-001.phpt (878 B)

Event Timeline