Skip to content

Commit cfeefaf

Browse files
committed
PHPC-1076: Include CommandFailedEvent reply in APM test output
MongoDB 3.4 introduced a codeName field to error replies, so we use a wildcard to ignore that for 3.2 servers.
1 parent 814d49c commit cfeefaf

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/apm/overview.phpt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,15 @@ object(MongoDB\Driver\Monitoring\CommandFailedEvent)#%d (%d) {
9191
}
9292
["operationId"]=>
9393
string(%d) "%s"
94+
["reply"]=>
95+
object(stdClass)#%d (%d) {
96+
["ok"]=>
97+
float(0)
98+
["errmsg"]=>
99+
string(12) "ns not found"
100+
["code"]=>
101+
int(26)%A
102+
}
94103
["requestId"]=>
95104
string(%d) "%s"
96105
["server"]=>

0 commit comments

Comments
 (0)