Skip to content

PHPLIB-597: Replace direct PHPUnit dependency with symfony/phpunit-bridge #791

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
Oct 22, 2020

Conversation

alcaeus
Copy link
Member

@alcaeus alcaeus commented Oct 21, 2020

PHPLIB-597

This is a prerequisite to get tests going on PHP 8. PHPUnit makes it impossible to run tests on PHP 7 - PHP 8, and the PHPUnit bridge fixes that problem for us.

This PR introduces a new trait for the constraint polyfill, as PHPUnit 9 changes the method signature for Constraint::evaluate which we override. These changes will be contributed back to Symfony (hopefully for inclusion in 5.2).

@alcaeus alcaeus self-assigned this Oct 21, 2020
Copy link
Member

@jmikola jmikola left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Glad we're able to replace assertInternalType with the newer methods.

@alcaeus alcaeus merged commit 4974348 into mongodb:master Oct 22, 2020
@alcaeus alcaeus deleted the phpunit-bridge branch October 22, 2020 18:17
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