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.
2 parents a6ac94d + 21a2fc3 commit 5e503d0Copy full SHA for 5e503d0
tests/DocumentationExamplesTest.php
@@ -981,7 +981,7 @@ public function testChangeStreamExample_1_4()
981
$this->assertMatchesDocument($expectedChange, $lastChange);
982
983
// Start Changestream Example 3
984
- $resumeToken = ($lastChange !== null) ? $lastChange->_id : null;
+ $resumeToken = $changeStream->getResumeToken();
985
986
if ($resumeToken === null) {
987
throw new \Exception('Resume token was not found');
0 commit comments