We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8e88c5c commit 224033eCopy full SHA for 224033e
tests/Operation/WatchFunctionalTest.php
@@ -154,7 +154,9 @@ function (array $event) use (&$events) {
154
155
$this->assertCount(1, $events);
156
$this->assertSame('aggregate', $events[0]['started']->getCommandName());
157
- $operationTime = $events[0]['succeeded']->getReply()->operationTime;
+ $reply = $events[0]['succeeded']->getReply();
158
+ $this->assertObjectHasAttribute('operationTime', $reply);
159
+ $operationTime = $reply->operationTime;
160
$this->assertInstanceOf(TimestampInterface::class, $operationTime);
161
162
$this->assertNull($changeStream->current());
0 commit comments