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

Add tests for out-of-range UTCDateTime values

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • 1.20.0
    • Affects Version/s: None
    • Component/s: Tests
    • Not Needed
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?

      There are several todo items in the UTCDateTime tests to add additional tests for out-of-range values. These referenced CDRIVER-1377, which has long been resolved (libmongoc 1.5.0).

      Related files:

      • bson-utcdatetime-serialization_error-002.phpt
      • bson-utcdatetime-serialization_error-004.phpt
      • bson-utcdatetime-set_state_error-002.phpt
      • bson-utcdatetime_error-003.phpt

      I came across this while updating tests for PHPC-1849.

            Assignee:
            jerome.tamarelle@mongodb.com Jérôme Tamarelle
            Reporter:
            jmikola@mongodb.com Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: