Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

FIX PHPUNIT (404 Error when download phpunit)#29263

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

Closed
qlaffont-smiirl wants to merge2 commits intosymfony:3.4fromqlaffont-smiirl:patch-1

Conversation

@qlaffont-smiirl
Copy link

@qlaffont-smiirlqlaffont-smiirl commentedNov 19, 2018
edited
Loading

At this time, 5.7 & 4.8 ZIP return 404 error. So we can change to 5.7.26 & 4.8.36 ZIP.

QA
Branch?For All
Bug fix?yes
New feature?no
BC breaks?no
Deprecations?no
Tests pass?yes
Fixed tickets
LicenseMIT
Doc PRsymfony/symfony-docs#...

At this time, 5.7 ZIP return 404 error. So we can change to 5.7.26 ZIP.
@qlaffont-smiirlqlaffont-smiirl changed the title PHPUNIT 5.7 -> 5.7.26 (404 Error when download phpunit)FIX PHPUNIT (404 Error when download phpunit)Nov 19, 2018
4.8 -> 4.8.36
@qlaffont-smiirl
Copy link
Author

qlaffont-smiirl commentedNov 19, 2018
edited
Loading

Appveyor test doesn't work because it doesn't take the modification I have to do.

@l-vo
Copy link
Contributor

I confirm the issue :(

@nicolas-grekas
Copy link
Member

See#29264

}elseif (PHP_VERSION_ID >=50600) {
// PHPUnit 4 does not support PHP 7
$PHPUNIT_VERSION =getenv('SYMFONY_PHPUNIT_VERSION') ?:'5.7';
$PHPUNIT_VERSION =getenv('SYMFONY_PHPUNIT_VERSION') ?:'5.7.26';
Copy link
Contributor

@l-vol-voNov 20, 2018
edited
Loading

Choose a reason for hiding this comment

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

6.5, 5.7 and 4.8 seem to be aliases for the latest patch versions. We can't fix it to a specific patch version (problem to maintain it). And maybe 4.8 and 5.7 aliases will be available again soon. What about use a fallback if the zip is not found and use github api for selecting the latest patch tag ?

Choose a reason for hiding this comment

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

Let's try saving us from any additional complexity.
Let's lobbysebastianbergmann/phpunit#3413

@nicolas-grekas
Copy link
Member

Reported insebastianbergmann/phpunit#3413

@tonivdv
Copy link

I fixed this issue (but for php >=7.2) by changing the env SYMFONY_PHPUNIT_VERSION from 7.2 to 7.4 in bin/phpunit file.

I guess this is what needs to be done in the bridge ... aligning the valid versions according to the php versions?!

@qlaffont-smiirl
Copy link
Author

Yes me too, I have set the env var SYMFONY_PHPUNIT_VERSION and it solve the problem. But we need to change it on the file for default env.

@qlaffont-smiirl
Copy link
Author

@nicolas-grekas , the author answer it. Can we merge it ?

@stof
Copy link
Member

A solution might be to switch tocomposer create-project phpunit/phpunit 5.7 '5.7.* --no-install --prefer-dist instead of downloading the branch from Github. This way, composer would download the latest patch release properly (and--no-install still allows us to alter the dependencies before installing them)

l-vo, DONSA, and xabbuh reacted with thumbs up emoji

@nicolas-grekas
Copy link
Member

@stof brilliant idea! See#29265

@nicolas-grekasnicolas-grekas added this to the3.4 milestoneNov 20, 2018
@nicolas-grekas
Copy link
Member

Closing in favor of#29265
Thanks for raising the point and suggesting the change!

nicolas-grekas added a commit that referenced this pull requestNov 20, 2018
…-grekas)This PR was merged into the 3.4 branch.Discussion----------[Bridge/PhpUnit] Use composer to download phpunit| Q             | A| ------------- | ---| Branch?       | 3.4| Bug fix?      | yes| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets |#27753,#29263,#29264| License       | MIT| Doc PR        | -Commits-------e823f1d [Bridge/PhpUnit] Use composer to download phpunit
@qlaffont-smiirlqlaffont-smiirl deleted the patch-1 branchNovember 20, 2018 16:20
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@nicolas-grekasnicolas-grekasnicolas-grekas left review comments

+1 more reviewer

@l-vol-vol-vo left review comments

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Projects

None yet

Milestone

3.4

Development

Successfully merging this pull request may close these issues.

6 participants

@qlaffont-smiirl@l-vo@nicolas-grekas@tonivdv@stof@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp