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