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

[PHPunitBridge] Count @expectedDeprecation as an assertion#21896

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
fabpot merged 1 commit intosymfony:3.2fromwouterj:patch-17
Mar 6, 2017

Conversation

@wouterj
Copy link
Member

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

By addingaddToAssertionCount(), the@expectedDeprecation annotation is recognized as an assertion by PHPUnit. This means PHPUnit will not report the test as risky because it does not contain any assertion.

@xabbuh
Copy link
Member

see#21786 and#21828 :)

@fabpot
Copy link
Member

@xabbuh This can be closed then, right?

@xabbuh
Copy link
Member

@fabpot We could discuss whether#21828 should have been merged into3.2 as a bugfix (I don't think so, but others may disagree).

@wouterj
Copy link
MemberAuthor

wouterj commentedMar 6, 2017
edited
Loading

Yes, except that#21828 is merged as a feature. However, I consider it a bug fix and thus it has to be backported to 3.2. Imo, counting theexpectedDeprecationassertion not as an assertion is a bug. PHPunit 6's default enabled risky test checker reveals the bug (but the bug is there in all PHPunit versions).

Copy link
Member

@nicolas-grekasnicolas-grekas left a comment

Choose a reason for hiding this comment

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

👍 for 3.2 then

@xabbuh
Copy link
Member

Fair enough, but note that you will probably check first that the test is neither skipped nor incomplete (see how#21828 was implemented).

@wouterj
Copy link
MemberAuthor

Yeah, I think if it's decided to backport this to 3.2, the#21828 PR should simply be backported (and this PR should just be closed).

@fabpot
Copy link
Member

Except the trait does not exist in 3.2 IIRC, so this should be done here.

@wouterj
Copy link
MemberAuthor

Ah, my bad. Updated the PR to match the code added in 3.3.

Copy link
Member

@xabbuhxabbuh left a comment

Choose a reason for hiding this comment

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

👍

@fabpot
Copy link
Member

Thank you@wouterj.

@fabpotfabpot merged commitba5c0f4 intosymfony:3.2Mar 6, 2017
fabpot added a commit that referenced this pull requestMar 6, 2017
… (wouterj)This PR was merged into the 3.2 branch.Discussion----------[PHPunitBridge] Count @expectedDeprecation as an assertion| Q             | A| ------------- | ---| Branch?       | 3.2| Bug fix?      | yes| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets | -| License       | MIT| Doc PR        | -By adding `addToAssertionCount()`, the `@expectedDeprecation` annotation is recognized as an assertion by PHPUnit. This means PHPUnit will not report the test as risky because it does not contain any assertion.Commits-------ba5c0f4 Count @expectedDeprecation as an assertion
@wouterjwouterj deleted the patch-17 branchMarch 6, 2017 16:33
@fabpotfabpot mentioned this pull requestMar 9, 2017
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@nicolas-grekasnicolas-grekasnicolas-grekas approved these changes

@xabbuhxabbuhxabbuh approved these changes

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

5 participants

@wouterj@xabbuh@fabpot@nicolas-grekas@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp