Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
[PhpUnitBridge] install PHPUnit 7 on PHP 7.1 and fix requir. for PHPUnit 6#29439
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
derrabus left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
The PR changes the default PHPUnit versions. The new defaults look reasonable to me.
The changes you've made to the comments however are a bit misleading.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
gregurco commentedDec 3, 2018
@derrabus thanks for review 👍 I changed comments. |
nicolas-grekas commentedDec 3, 2018
That should be submitted on master: we shouldn't change the version on a patch release. |
84fafe8 to79d771bComparegregurco commentedDec 3, 2018
@nicolas-grekas thank you for remark. Changed. |
fb107eb toe5c7c6bCompare
ostrolucky left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Also I found that PHPUnit 6.5 required PHP 7.0, not 7.2
Comment you deleted does not say that you need to use PHP 7.2 for PHPUnit 6. It explains that PHP 7.2 can't be used with PHPUnit 5. You are free to use PHPUnit 5 until version 7.2.
Comments you reversed no longer explain why is given phpunit version installed for given php version. And suddenly installing phpunit 6 for php 7.0-7.1 and phpunit 7 for php>=7.2 by default will probably break the builds for lot of people.
This PR significantly changes current strategy from installing lowest working PHPUnit version for given PHP version to installing latest PHPUnit version.
14f1b75 toa63cb9eComparegregurco commentedDec 7, 2018 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
User is free to setup
The comment was wrong. PHPUnit 5 can be used with PHP 7.2 and also 7.3... so, that's why I changes the comment. |
ostrolucky commentedDec 7, 2018 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
I know, doesn't change the fact that it will by default update major phpunit version without asking.
In that case condition should have been removed to install PHPUnit 5, which would follow current strategy and there is no need for PHPUnit 6 and 7 at all. At the time there were issues with it#27370 but it appears it has been resolved since then. For the record, Iam for using newer versions, but it needs to be highlighted that this PR is not about fixing the requirement, but about installing latest PHPUnit version possible for given PHP version, which changes the strategy that was used until now that was using oldest major working for given PHP version. |
gregurco commentedDec 8, 2018
do you have any suggestions how to highlight that? Generally it's the single scope of this PR. |
ostrolucky commentedDec 8, 2018
No need, I did highlight it with my comment. It needs comment from symfony members now status: needs review |
fabpot commentedDec 10, 2018
Thank you@gregurco. |
…equir. for PHPUnit 6 (gregurco)This PR was merged into the 4.3-dev branch.Discussion----------[PhpUnitBridge] install PHPUnit 7 on PHP 7.1 and fix requir. for PHPUnit 6| Q | A| ------------- | ---| Branch? | master| Bug fix? | no| New feature? | yes| BC breaks? | no| Deprecations? | no| Tests pass? | yes| Fixed tickets || License | MIT| Doc PR |Added support of PHPUnit 7.4 if PHP version is 7.1+ (release link:https://packagist.org/packages/phpunit/phpunit#7.4.5).Also I found that PHPUnit 6.5 required PHP 7.0, not 7.2 (proof:https://packagist.org/packages/phpunit/phpunit#6.5.13)Commits-------30609bf [PhpUnitBridge] install PHPUnit 7 on PHP 7.1 and fix require for PHPUnit 6
Uh oh!
There was an error while loading.Please reload this page.
Added support of PHPUnit 7.4 if PHP version is 7.1+ (release link:https://packagist.org/packages/phpunit/phpunit#7.4.5).
Also I found that PHPUnit 6.5 required PHP 7.0, not 7.2 (proof:https://packagist.org/packages/phpunit/phpunit#6.5.13)