forked from mongodb/mongo-php-driver
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbulkwritecommand-debug-003.phpt
106 lines (103 loc) · 1.88 KB
/
bulkwritecommand-debug-003.phpt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
--TEST--
MongoDB\Driver\BulkWriteCommand debug output before execution
--FILE--
<?php
$tests = [
[],
['ordered' => true],
['ordered' => false],
['bypassDocumentValidation' => true],
['bypassDocumentValidation' => false],
['comment' => ['foo' => 1]],
['let' => ['id' => 1, 'x' => 'foo']],
];
foreach ($tests as $options) {
var_dump(new MongoDB\Driver\BulkWriteCommand($options));
}
?>
===DONE===
<?php exit(0); ?>
--EXPECTF--
object(MongoDB\Driver\BulkWriteCommand)#%d (%d) {
["bypassDocumentValidation"]=>
NULL
["ordered"]=>
bool(true)
["verboseResults"]=>
bool(false)
["session"]=>
NULL
}
object(MongoDB\Driver\BulkWriteCommand)#%d (%d) {
["bypassDocumentValidation"]=>
NULL
["ordered"]=>
bool(true)
["verboseResults"]=>
bool(false)
["session"]=>
NULL
}
object(MongoDB\Driver\BulkWriteCommand)#%d (%d) {
["bypassDocumentValidation"]=>
NULL
["ordered"]=>
bool(false)
["verboseResults"]=>
bool(false)
["session"]=>
NULL
}
object(MongoDB\Driver\BulkWriteCommand)#%d (%d) {
["bypassDocumentValidation"]=>
bool(true)
["ordered"]=>
bool(true)
["verboseResults"]=>
bool(false)
["session"]=>
NULL
}
object(MongoDB\Driver\BulkWriteCommand)#%d (%d) {
["bypassDocumentValidation"]=>
bool(false)
["ordered"]=>
bool(true)
["verboseResults"]=>
bool(false)
["session"]=>
NULL
}
object(MongoDB\Driver\BulkWriteCommand)#%d (%d) {
["bypassDocumentValidation"]=>
NULL
["comment"]=>
object(stdClass)#2 (1) {
["foo"]=>
int(1)
}
["ordered"]=>
bool(true)
["verboseResults"]=>
bool(false)
["session"]=>
NULL
}
object(MongoDB\Driver\BulkWriteCommand)#%d (%d) {
["bypassDocumentValidation"]=>
NULL
["let"]=>
object(stdClass)#2 (2) {
["id"]=>
int(1)
["x"]=>
string(3) "foo"
}
["ordered"]=>
bool(true)
["verboseResults"]=>
bool(false)
["session"]=>
NULL
}
===DONE===