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

Replace various print functions in test suite with var_dump()

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: Tests
    • None

      The test suite's tools.php file includes various utility functions for printing objects. Many of these predated debug handlers for those objects, so we should replace these with var_dump(). Using var_dump() would also ensure that tests get updated if/when new fields are added to these objects.

      Suggested functions to replace:

      • printWriteResult
      • printWriteConcernError
      • printWriteError
      • getInsertCount
      • getModifiedCount
      • getDeletedCount
      • getUpsertedCount
      • getWriteErrors
      • printServer

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

              Created:
              Updated: