Skip to content

Commit 1c3f217

Browse files
committed
Merged pull request #670
2 parents b41c0d3 + 5a00dce commit 1c3f217

File tree

5 files changed

+3
-55
lines changed

5 files changed

+3
-55
lines changed

tests/command/command-ctor-001.phpt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,9 @@ $cursor = $manager->executeCommand(DATABASE_NAME, new MongoDB\Driver\Command([
5151
'pipeline' => [
5252
['$match' => $document],
5353
],
54+
'cursor' => new stdClass(),
5455
]));
55-
var_dump($cursor->toArray()[0]->result[0]);
56+
var_dump($cursor->toArray()[0]);
5657

5758
?>
5859
===DONE===

tests/cursor/cursor-tailable_error-002.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,5 +84,5 @@ Awaiting results...
8484
Awaiting results...
8585
Awaiting results...
8686
OK: Got MongoDB\Driver\Exception\RuntimeException
87-
Cursor not found, cursor id: %d
87+
%r(Cursor not found, cursor id: \d+|cursor id \d+ not found)%r
8888
===DONE===

tests/manager/manager-var-dump-001.phpt

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -52,23 +52,6 @@ object(MongoDB\Driver\Manager)#%d (%d) {
5252
bool(false)
5353
["last_is_master"]=>
5454
array(%d) {
55-
["ismaster"]=>
56-
bool(true)
57-
["maxBsonObjectSize"]=>
58-
int(16777216)
59-
["maxMessageSizeBytes"]=>
60-
int(48000000)
61-
["maxWriteBatchSize"]=>
62-
int(1000)
63-
["localTime"]=>
64-
object(%s\UTCDateTime)#%d (%d) {
65-
["milliseconds"]=>
66-
%r(int\(\d+\)|string\(\d+\) "\d+")%r
67-
}
68-
["maxWireVersion"]=>
69-
int(%d)
70-
["minWireVersion"]=>
71-
int(0)
7255
%a
7356
}
7457
["round_trip_time"]=>

tests/server/server-debug.phpt

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -35,25 +35,7 @@ object(MongoDB\Driver\Server)#%d (%d) {
3535
bool(false)
3636
["last_is_master"]=>
3737
array(%d) {
38-
["ismaster"]=>
39-
bool(true)
40-
["maxBsonObjectSize"]=>
41-
int(16777216)
42-
["maxMessageSizeBytes"]=>
43-
int(48000000)
44-
["maxWriteBatchSize"]=>
45-
int(1000)
46-
["localTime"]=>
47-
object(%s\UTCDateTime)#%d (%d) {
48-
["milliseconds"]=>
49-
%r(int\(\d+\)|string\(\d+\) "\d+")%r
50-
}
51-
["maxWireVersion"]=>
52-
int(%d)
53-
["minWireVersion"]=>
54-
int(0)
5538
%a
56-
float(1)
5739
}
5840
["round_trip_time"]=>
5941
int(%d)

tests/server/server-getInfo-001.phpt

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -17,24 +17,6 @@ var_dump($manager->selectServer(new MongoDB\Driver\ReadPreference(MongoDB\Driver
1717
<?php exit(0); ?>
1818
--EXPECTF--
1919
array(%d) {
20-
["ismaster"]=>
21-
bool(true)
22-
["maxBsonObjectSize"]=>
23-
int(16777216)
24-
["maxMessageSizeBytes"]=>
25-
int(48000000)
26-
["maxWriteBatchSize"]=>
27-
int(1000)
28-
["localTime"]=>
29-
object(%s\UTCDateTime)#%d (%d) {
30-
["milliseconds"]=>
31-
%r(int\(\d+\)|string\(\d+\) "\d+")%r
32-
}
33-
["maxWireVersion"]=>
34-
int(%d)
35-
["minWireVersion"]=>
36-
int(0)
3720
%a
38-
float(1)
3921
}
4022
===DONE===

0 commit comments

Comments
 (0)