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

Make tests support phpunit 8#32842

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

Merged
nicolas-grekas merged 1 commit intosymfony:3.4fromnicolas-grekas:phpunit8
Jul 31, 2019

Conversation

@nicolas-grekas
Copy link
Member

@nicolas-grekasnicolas-grekas commentedJul 31, 2019
edited
Loading

QA
Branch?3.4
Bug fix?yes
New feature?no
BC breaks?no
Deprecations?no
Tests pass?yes
Fixed tickets-
LicenseMIT
Doc PR-

Havingvoid on setUp/tearDown isreally painful /cc@sebastianbergmann FYI

This works around the issue by adding a new trait to the phpunit-bridge :ForwardCompatTestTrait.
Another reason why the bridge is so useful...

With this change, we should have the same codebase be able to run under phpunit 4.8 (used with PHP5.5) up to phpunit 8.2 (used with PHP7.4).

🤞 🤕

One more step towards PHP 7.4 support.

dmaicher, seriquynh, phansys, and sstok reacted with hooray emojiphansys reacted with rocket emoji
nicolas-grekas added a commit that referenced this pull requestJul 31, 2019
This PR was merged into the 3.4 branch.Discussion----------Make tests support phpunit 8| Q             | A| ------------- | ---| Branch?       | 3.4| Bug fix?      | yes| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets | -| License       | MIT| Doc PR        | -Having `void` on setUp/tearDown is **really** painful /cc@sebastianbergmann FYIThis works around the issue by adding a new trait to the phpunit-bridge: `SetUpTearDownTrait`.Another reason why the bridge is so useful...With this change, we should have the same codebase be able to run under phpunit 4.8 (used with PHP5.5) up to phpunit 8.2 (used with PHP7.4).:crossed_fingers: :face_with_head_bandage:One more step towards PHP 7.4 support.Commits-------81af97f Make tests support phpunit 8
@nicolas-grekasnicolas-grekas merged commit81af97f intosymfony:3.4Jul 31, 2019
@nicolas-grekasnicolas-grekas deleted the phpunit8 branchJuly 31, 2019 22:40
@nicolas-grekasnicolas-grekas mentioned this pull requestJul 31, 2019
23 tasks
@Tobion
Copy link
Contributor

This looks like a huge source of conflicts. Are we sure we want to introduce that? The alternatives would be to not support phpunit 8 or only do these changes in 4.4 and up.

@nicolas-grekas
Copy link
MemberAuthor

nicolas-grekas commentedAug 1, 2019
edited
Loading

This is merged up to master now so that conflicts are resolved once for all. We have to support phpunit 8 because that's the only way to PHP 7.4, which we want to support on branch 3.4...

@mlocati
Copy link
Contributor

The alternatives would be to not support phpunit 8

This is a recurring problem: every PHPUnit version supports just a small range of PHP versions.

@nicolas-grekas
Copy link
MemberAuthor

@mlocati we made some progress since this PR, see#32922

mlocati reacted with thumbs up emoji

*/
protectedstatic$kernel;

privatefunctiondoTearDown()
Copy link
Contributor

@teohhanhuiteohhanhuiAug 29, 2019
edited
Loading

Choose a reason for hiding this comment

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

Maybe it doesn't bother too many people, but the visibility of this method has been changed from v4.3.3:

It broke our builds in API Platform.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@lyrixxlyrixxAwaiting requested review from lyrixxlyrixx is a code owner

@xabbuhxabbuhAwaiting requested review from xabbuhxabbuh is a code owner

1 more reviewer

@teohhanhuiteohhanhuiteohhanhui 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.

5 participants

@nicolas-grekas@Tobion@mlocati@teohhanhui@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp