I have two arrays of objects. I want to test if these two arrays are equal, but using a strict comparison such as 'false' !== 0.
Is it possible to achieve this in phpunit without requiring custom comparators or other methods?
Using symfony VarExporter solved the problem:
self::assertSame(VarExporter::export($firstArrayOfObjects), VarExporter::export($secondArrayOfObjects));
Using symfony VarExporter solved the problem: