Uploaded image for project: 'PHP Driver: Extension'
  1. PHP Driver: Extension
  2. PHPC-586

Create regression tests for tailable cursor iteration

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.3.0-beta1, 1.3.0
    • Affects Version/s: 1.1.2
    • Component/s: None
    • None

      This issue has been re-purposed to create regression tests for tailable cursor iteration.

      Original description:

      While attempting to implement a regression test for PHPLIB-180 that iterates on a tailable cursor, I ran into a brick wall. We obviously cannot use foreach for such iteration, as rewinding is not permitted. Wrapping the cursor with IteratorIterator to get direct access to next(), valid(), and current() methods (essentially an API for hasNext() and getNext()) also did not seem to work correctly (and would be a convoluted solution even if it did immediately work).

            Assignee:
            jmikola@mongodb.com Jeremy Mikola
            Reporter:
            jmikola@mongodb.com Jeremy Mikola
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: