Create regression tests for tailable cursor iteration

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • 1.3.0-beta1, 1.3.0
    • Affects Version/s: 1.1.2
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • 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:
              Jeremy Mikola
              Reporter:
              Jeremy Mikola
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: