• Jeremy Mikola's avatar
    PHPLIB-451: ChangeStream::rewind() should never execute getMore · 84c365c0
    Jeremy Mikola authored
    Tests were revised to no longer expect rewind() to encounter an error and resume. In most tests, rewind() is a NOP because the change stream has no events to return upon creation.
    
    Since Watch now always executes aggregate commands with APM, the check for startAtOperationTime support was moved to createResumeCallable(). We continue to only capture operationTime from the very first aggregate command.
    
    Various assertions for current() returning null were also changed to instead check valid(). Both forms are equivalent, but checking valid() is more consistent with our iteration examples.
    84c365c0
To find the state of this project's repository at the time of any of these versions, check out the tags.
ChangeStreamsSpecTest.php 8.93 KB