How do I do a ===/strict equals comparison in phpunit?
Use assertSame. It checks that the type and value are the same.
For objects, this will check that they "reference the same object" (object identity).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With