How do I do a strict equals/triple equals comparison in phpunit?

2.5k views Asked by At

How do I do a ===/strict equals comparison in phpunit?

1

There are 1 answers

1
Matthew Flaschen On BEST ANSWER

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).