Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade 3.6.11 to 3.7.8 with SplObjectStorage: Failed asserting that two objects are equal. #700

Closed
havvg opened this issue Oct 25, 2012 · 4 comments

Comments

@havvg
Copy link

havvg commented Oct 25, 2012

https://gist.github.com/8c40af35252fc4da4f6a

After upgrading, we face the given error. The actual test is more complex, I boiled it down to those lines of code, which reproduce our problem.
The documentations tells something about this identicalTo method, which seems not to be for this kind of case, any suggestions?

@jsor
Copy link
Contributor

jsor commented Oct 29, 2012

I experienced the same, also with stdClass (if that helps).

@havvg
Copy link
Author

havvg commented Oct 29, 2012

I just used the stdClass as a simplification. The actual test does not mock stdClass but actual domain models.

@edorian
Copy link
Contributor

edorian commented Oct 29, 2012

This is the only regression that was discovered after the 3.7 release that is still open.

The tracking issue for that is: sebastianbergmann/phpunit-mock-objects#100 and will get resolved as soon as possible.

Due to time constraints and complexity i wasn't able to move this along faster, sorry.

@havvg havvg closed this as completed Oct 29, 2012
@havvg
Copy link
Author

havvg commented Oct 29, 2012

Thank you, the commit mentioned there works fine for me!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants