phpcr/phpcr-api-tests — pull request #44 by bergie (2011-12-05 09:48:15+00:00)
Title: Avoid assertEquals, as it can make PHP crash if there are circular references

It appears using [assertSame can be dangerous](https://github.com/sebastianbergmann/phpunit/issues/296) with complex objects that may have circular references. Because of this, I would suggest going with a depth-controlled assertEquals instead.

This fixes a segfault with the Midgard PHPCR provider when comparing two sets of Property objects:
http://pastebin.com/at55eGP4