• Jeremy Mikola's avatar
    Start iteration with rewind() in ChangeStream::key() test · 306e5688
    Jeremy Mikola authored
    Previously, iteration started with next(), so the first element's key was 1. Iteration should being with rewind() and the initial key should be zero.
    
    With this change, we're still testing that the key is only incremented when next() successfully increments.
    306e5688
Name
Last commit
Last update
docs Loading commit data...
src Loading commit data...
tests Loading commit data...
.gitignore Loading commit data...
.travis.yml Loading commit data...
CONTRIBUTING.md Loading commit data...
LICENSE Loading commit data...
Makefile Loading commit data...
README.md Loading commit data...
composer.json Loading commit data...
phpunit.xml.dist Loading commit data...