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

Improve test coverage of type map behavior for objects implementing Persistable

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None

      While the type map can override the default behaviour when unserialising data serialised from an object implementing MongoDB\BSON\Persistable, this does not extend to class names that implement MongoDB\BSON\Unserializable (see comment in tests/bson/bson-toPHP-015.phpt. Tests should cover all documented type map behaviour to avoid regressions when refactoring type maps in the future.

            Assignee:
            Unassigned Unassigned
            Reporter:
            andreas.braun@mongodb.com Andreas Braun
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: