File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -55,14 +55,17 @@ public function testGetResumeToken()
5555 $ this ->insertDocument (['x ' => 2 ]);
5656
5757 $ changeStream ->next ();
58+ $ this ->assertTrue ($ changeStream ->valid ());
5859 $ this ->assertSameDocument ($ changeStream ->current ()->_id , $ changeStream ->getResumeToken ());
5960
6061 $ changeStream ->next ();
62+ $ this ->assertTrue ($ changeStream ->valid ());
6163 $ this ->assertSameDocument ($ changeStream ->current ()->_id , $ changeStream ->getResumeToken ());
6264
6365 $ this ->insertDocument (['x ' => 3 ]);
6466
6567 $ changeStream ->next ();
68+ $ this ->assertTrue ($ changeStream ->valid ());
6669 $ this ->assertSameDocument ($ changeStream ->current ()->_id , $ changeStream ->getResumeToken ());
6770 }
6871
@@ -116,6 +119,7 @@ function (array $event) use (&$events) {
116119 $ postBatchResumeToken = $ this ->getPostBatchResumeTokenFromReply ($ events [0 ]['succeeded ' ]->getReply ());
117120
118121 $ changeStream ->next ();
122+ $ this ->assertTrue ($ changeStream ->valid ());
119123 $ this ->assertSameDocument ($ changeStream ->current ()->_id , $ changeStream ->getResumeToken ());
120124
121125 $ changeStream ->next ();
You can’t perform that action at this time.
0 commit comments