Commit 909121fc authored by Jeremy Mikola's avatar Jeremy Mikola

Explain why rewind() is not used in testNextAdvancesKey()

parent adbea29e
...@@ -746,6 +746,8 @@ class WatchFunctionalTest extends FunctionalTestCase ...@@ -746,6 +746,8 @@ class WatchFunctionalTest extends FunctionalTestCase
$this->insertDocument(['x' => 1]); $this->insertDocument(['x' => 1]);
$this->insertDocument(['x' => 2]); $this->insertDocument(['x' => 2]);
/* Note: we intentionally do not start iteration with rewind() to ensure
* that next() behaves identically when called without rewind(). */
$changeStream->next(); $changeStream->next();
$this->assertSame(0, $changeStream->key()); $this->assertSame(0, $changeStream->key());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment