Comparators are a way to introduce a custom comparation logic in your tests. assertEquals is dead. Long live assertEquals.

I used it in the past but I never did a code snippet about it.

Sign in to participate in the conversation
PHP Community on Mastodon

Open source. Open community. We are dedicated to building and enriching the PHP community.