• 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
WatchFunctionalTest.php 11.9 KB