Uploaded image for project: 'PHP Driver: Library'
  1. PHP Driver: Library
  2. PHPLIB-831

Unified test runner does not evaluate $$exists within $$unsetOrMatches

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • 1.13.0-beta1, 1.13.0
    • Affects Version/s: 1.8.0
    • Component/s: None
    • None

      $$unsetOrMatches accepts anything as its argument, and should recursively match an existing value in the actual document against that argument. While POC-ing test changes for DRIVERS-1713, I realized that PHPLIB's Matches constraint doesn't actually handle the case where $exists appears directly within $$unsetOrMatches. This is due to Matches::assertMatchesOperator() not having a case for $exists, which is presently only handled during document iteration.

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

              Created:
              Updated:
              Resolved: