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

Allow running the unit tests on more recent PHPUnit versions #140

Merged

Conversation

jrfnl
Copy link
Collaborator

@jrfnl jrfnl commented Feb 13, 2020

I've tested and the unit tests as-is are compatible with PHPUnit 7.x and 8.x without needing any adjustments, so we may as well allow using/installing those versions.

Includes widening the version requirements for the limedeck/phpunit-detailed-printer to prevent it from being a blocker for using more recent PHPUnit versions.

Version 4.x of the limedeck/phpunit-detailed-printer is compatible with PHPUnit 7.x, version 5.x is compatible with PHPUnit 8.x.
Ref: https://github.com/LimeDeck/phpunit-detailed-printer/releases

I've tested and the unit tests as-is are compatible with PHPUnit 7.x and 8.x without needing any adjustments, so we may as well allow using/installing those versions.

Includes widening the version requirements for the `limedeck/phpunit-detailed-printer` to prevent it from being a blocker for using more recent PHPUnit versions.

Version 4.x of the `limedeck/phpunit-detailed-printer` is compatible with PHPUnit 7.x, version 5.x is compatible with PHPUnit 8.x.
Ref: https://github.com/LimeDeck/phpunit-detailed-printer/releases
@sirbrillig
Copy link
Owner

Good idea. Are there images of php 8 already? Maybe we should also edit .circleci/config.yml to add a php 8 image if we can get one. It may at least be worth editing it here to update the php 7 image to 7.4.

@sirbrillig
Copy link
Owner

Oh, I mis-read this. phpUNIT. Yes. Of course.

@sirbrillig sirbrillig merged commit f6bdc3a into sirbrillig:master Feb 13, 2020
@jrfnl jrfnl deleted the feature/wider-phpunit-requirements branch February 13, 2020 23:40
@jrfnl
Copy link
Collaborator Author

jrfnl commented Feb 13, 2020

On Travis I know you can already run against nightly (= PHP 8.0-dev), not sure about CircleCI.

Either way, I know that DealerDirect Composer PHPCS plugin will currently not (yet) install on PHP 8, so that would block testing.
Would be interesting to run some tests with the plugin to see if that could be changed (in their requirements).

@jrfnl
Copy link
Collaborator Author

jrfnl commented Feb 14, 2020

FYI: PHPCSStandards/composer-installer#106

sirbrillig pushed a commit that referenced this pull request May 25, 2020
I've tested and the unit tests as-is are compatible with PHPUnit 7.x and 8.x without needing any adjustments, so we may as well allow using/installing those versions.

Includes widening the version requirements for the `limedeck/phpunit-detailed-printer` to prevent it from being a blocker for using more recent PHPUnit versions.

Version 4.x of the `limedeck/phpunit-detailed-printer` is compatible with PHPUnit 7.x, version 5.x is compatible with PHPUnit 8.x.
Ref: https://github.com/LimeDeck/phpunit-detailed-printer/releases
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.

None yet

2 participants