AssertIdentical doesnt work as I would expect, if I have 2 objects who's state is private / protected controlled thru methods, I would expect to compare equality based on the full state as if I were using ===
In other words I would expect:
function assertIdentical( $first, $second, $msg = '' )
{
$this->assertTrue( $first === $second, $msg );
}
Not a compare on the public properties, perhaps the assertion method could be parametrized to do private state comparison via the PHP equality operator ( optionally for BC )
As far as I can read in the source code, assertIdentical *is* using ===.
Take a look to line 47 of class SimpleTestCompatibility in compatibility.php.
Could you post an example of a non-working situation, please?