·
2 commits
to main
since this release
Immutable
release. Only release title and notes can be modified.
Added
Factory::setExporter()andFactory::exporter()for configuring theSebastianBergmann\Exporter\Exporterinstance that is used by comparators registered with the factory
Changed
- Comparators now use the
Exporterinstance configured for theirFactoryinstead of creating their own instances (this allows customizing how values are represented in comparison failure messages) - When an object exporter provides the representation for the objects that are compared then that representation is used in the comparison failure message instead of the property-by-property representation; this does not apply to objects for which a comparator of their own exists (
DateTimeComparator, for instance), as the representation such a comparator provides always has precedence