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

[FR] Add polyfill for new assertObjectEquals() #5

Closed
jrfnl opened this issue Oct 26, 2020 · 1 comment · Fixed by #38
Closed

[FR] Add polyfill for new assertObjectEquals() #5

jrfnl opened this issue Oct 26, 2020 · 1 comment · Fixed by #38

Comments

@jrfnl
Copy link
Collaborator

jrfnl commented Oct 26, 2020

PHPUnit 9.4.0 introduces a new assertion Assert::assertObjectEquals().

Polyfilling this would require copying most of the new code from PHPUnit, which I'm hesistant to do.

Refs:

@jrfnl
Copy link
Collaborator Author

jrfnl commented Jun 12, 2021

Status: I have a working implementation ready, but that implementation is currently limited to PHP >= 7.0 .

I've opened an issue upstream to discuss this further as this limitation is due to how the assertion is implemented in PHPUnit itself.
Ref: sebastianbergmann/phpunit#4707

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

Successfully merging a pull request may close this issue.

1 participant