Skip to content

Add support for PHPUnit 8 #41

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 1 commit into from
Dec 16, 2019
Merged

Add support for PHPUnit 8 #41

merged 1 commit into from
Dec 16, 2019

Conversation

theodorejb
Copy link
Contributor

When trying to fix a Slim-Psr7 compatibility issue with PHP 7.4, I ran into a bunch of failing tests due to PHPUnit 7.x not being fully compatible with PHP 7.4. These issues were fixed in PHPUnit 8, but Slim-Psr7 can't be tested with PHPUnit 8 unless this library (which Slim-Psr7 depends on) also supports PHPUnit 8.

Unfortunately it doesn't appear possible to support both PHPUnit 8 and PHPUnit 7/6/5 at the same time when implementing methods like setUp that have a void return type. So it may be best to either merge this PR into a branch other than master, or else tag a release, so libraries that don't support PHPUnit 8 can use it as their dependency version instead of dev-master.

@Nyholm
Copy link
Member

Nyholm commented Dec 16, 2019

Thank you.

I've tagged 1.0, We can branch out later if we want to.

@Nyholm Nyholm merged commit 9c32239 into php-http:master Dec 16, 2019
@theodorejb theodorejb deleted the support-phpunit-8 branch December 22, 2019 22:30
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.

2 participants