Skip to content

Fixed JSON handling in PHPMatcherConstraint #208

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

Merged
merged 2 commits into from
Aug 12, 2020

Conversation

vudaltsov
Copy link
Contributor

JSON values are supposed to be canonicalized, but it does not work, because the new json string is not assigned via array unpacking. This PR fixes the issue.

I also fixed the absence of return after parent::fail($other, $description); by moving comparison failure construction to its own method and adding early returns.

@norberttech norberttech merged commit 7bfc287 into coduo:5.x Aug 12, 2020
@norberttech
Copy link
Member

Thank you @vudaltsov 🎉

@vudaltsov vudaltsov deleted the fix-phpunit-constraint branch August 12, 2020 10:42
norberttech pushed a commit to norberttech/php-matcher that referenced this pull request Sep 27, 2020
* Fixed JSON handling in PHPMatcherConstraint

* Move comma to the next line after nowdoc
norberttech pushed a commit to norberttech/php-matcher that referenced this pull request Sep 27, 2020
* Fixed JSON handling in PHPMatcherConstraint

* Move comma to the next line after nowdoc
@B-Galati
Copy link
Contributor

Thanks @vudaltsov, that's great :D

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

Successfully merging this pull request may close these issues.

3 participants