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] Allow sutFqcnResolver to return array#32902

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.4fromVincentLanglet:patch-1
Aug 4, 2019
Merged

[PhpUnitBridge] Allow sutFqcnResolver to return array#32902

nicolas-grekas merged 1 commit intosymfony:3.4fromVincentLanglet:patch-1
Aug 4, 2019

Conversation

@VincentLanglet
Copy link
Contributor

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

Phpunit handle multiple covers annotation:

/** * @covers ClassOne * @covers ClassTwo */

The coverage solver was only allowed to returnClassOne orClassTwo since it was transformed to[ClassName]. Returning[ClassOne, ClassTwo] was transform to [[ClassOne, ClassTwo]]` which was creating an error with phpunit. This PR fixed this case.

@nicolas-grekas
Copy link
Member

can you revert the array() => [] changes please?

@nicolas-grekasnicolas-grekas changed the titleFix: Allow sutFqcnResolver to return array[PhpUnitBridge] Allow sutFqcnResolver to return arrayAug 3, 2019
@VincentLanglet
Copy link
ContributorAuthor

can you revert the array() => [] changes please?

Yes, but I had an error from symfony linter

@nicolas-grekas
Copy link
Member

I had an error from symfony linter

I know, it's just a tool, and as all tools it has its limits, this is one of them :)

@nicolas-grekas
Copy link
Member

Thank you@VincentLanglet.

@nicolas-grekasnicolas-grekas merged commit1451c0b intosymfony:3.4Aug 4, 2019
nicolas-grekas added a commit that referenced this pull requestAug 4, 2019
…centLanglet)This PR was merged into the 3.4 branch.Discussion----------[PhpUnitBridge] Allow sutFqcnResolver to return array| 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        |Phpunit handle multiple covers annotation:```/** *@Covers ClassOne *@Covers ClassTwo */```The coverage solver was only allowed to return `ClassOne` or `ClassTwo` since it was transformed to `[ClassName]`. Returning `[ClassOne, ClassTwo]` was transform to [[ClassOne, ClassTwo]]` which was creating an error with phpunit. This PR fixed this case.Commits-------1451c0b  Allow sutFqcnResolver to return array
@VincentLangletVincentLanglet deleted the patch-1 branchAugust 4, 2019 16:14
This was referencedAug 26, 2019
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

Assignees

No one assigned

Projects

None yet

Milestone

3.4

Development

Successfully merging this pull request may close these issues.

3 participants

@VincentLanglet@nicolas-grekas@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp