{"issue":{"state":"open","created_at":"2011-09-02T16:49:41Z","updated_at":"2011-11-22T02:47:31Z","comments":2,"user":{"gravatar_id":"a0e570699edaace4d2c970618da06dd8","id":441396,"url":"https://api.github.com/users/bfeaver","avatar_url":"https://secure.gravatar.com/avatar/a0e570699edaace4d2c970618da06dd8?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"bfeaver"},"body":"When using the EqualsMatcher with Phake mock objects, it's possible in some cases to generate enough recursion that it produces a \"PHP Fatal error:  Nesting level too deep - recursive dependency?\" error. I'll try and come up with a test within Phake the produces the problem.\r\n\r\nHowever, when I compared it to the similar PHPUnit class PHPUnit_Framework_Constraint_IsEqual, we may want to enhance the amount of checking we do for equals ourselves, rather than just relying on '==' to work correctly.","assignee":null,"id":1553214,"labels":[{"name":"Defect","color":"9c2b2b","url":"https://api.github.com/repos/mlively/Phake/labels/Defect"}],"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"number":38,"title":"Nesting level fatal error with EqualsMatcher","html_url":"https://github.com/mlively/Phake/issues/38","closed_at":null,"url":"https://api.github.com/repos/mlively/Phake/issues/38","milestone":null},"action":"created","comment":{"created_at":"2011-11-22T02:47:31Z","updated_at":"2011-11-22T02:47:31Z","user":{"gravatar_id":"a0e570699edaace4d2c970618da06dd8","id":441396,"url":"https://api.github.com/users/bfeaver","avatar_url":"https://secure.gravatar.com/avatar/a0e570699edaace4d2c970618da06dd8?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"bfeaver"},"body":"This can temporarily be fixed by using the PHPUnit equalTo constraint.\r\n\r\n<code>Phake::verify($mock)->doesSomething($this->equalTo($foobar));</code>","id":2829693,"url":"https://api.github.com/repos/mlively/Phake/issues/comments/2829693"}}