You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is it possible to add support for this feature back, or is there a better way to validate objects equality in a custom way?
It's something that I've often relied on to prevent flaky tests when working with objects containing DateTimes using mocks with and assertEquals.
I haven't tested it recently, but in my experience the $delta parameter was not applied when comparing 2 objects directly containing a DataTime in a field.
The text was updated successfully, but these errors were encountered:
This commit introduced in PHPUnit 4.1.0 seems to have removed the ability to register custom comparators.
f0322b6#diff-bc1620baa64f3fb88768712abdc0e2fbR152
Is it possible to add support for this feature back, or is there a better way to validate objects equality in a custom way?
It's something that I've often relied on to prevent flaky tests when working with objects containing
DateTime
s using mockswith
andassertEquals
.I haven't tested it recently, but in my experience the
$delta
parameter was not applied when comparing 2 objects directly containing aDataTime
in a field.The text was updated successfully, but these errors were encountered: