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

ReadConcern tests need not exhaustively test each constant

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • 1.15.0
    • Affects Version/s: None
    • Component/s: Tests

      The ReadConcern tests (e.g. debug output, serialization) currently test all of the constants, even though ReadConcern itself is not limited to using those constants. Its constructor accepts any string as a level. These tests should be stripped down to just test a single level string. Only readconcern-constants.phpt need exhaustively test each constant value.

      This came up in mongodb/mongo-php-driver#1243 for PHPC-1761 when a new constant was being added.

            Assignee:
            levon.babayan@mongodb.com Levon Babayan (Inactive)
            Reporter:
            jmikola@mongodb.com Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: