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] Add polyfill for PhpUnit namespace#32940

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:4.4fromjderusse:polyfill_namespace
Aug 5, 2019

Conversation

@jderusse
Copy link
Member

@jderussejderusse commentedAug 5, 2019
edited
Loading

QA
Branch?4.4
Bug fix?no
New feature?yes
BC breaks?no
Deprecations?no
Tests pass?yes
Fixed tickets#32844
LicenseMIT
Doc PRNA

This PR provides PhpUnit >= 6 Namespaces class.

This will simplify tests that have to be compatible with multiple version of PHPUnit

- if (class_exists('PHPUnit_Foo')) {-   PHPUnit_Foo::bar():- } else {-   \PHPUnit\Foo::bar();- }+ \PHPUnit\Foo::bar();

WIP => waiting for#32941 to be green

@jderussejderusse changed the titleWIP [PhpUnitBridge] Add polyfill for PhpUnit namespace[PhpUnitBridge] Add polyfill for PhpUnit namespaceAug 5, 2019
@nicolas-grekas
Copy link
Member

Thank you@jderusse.

@nicolas-grekasnicolas-grekas added this to thenext milestoneAug 5, 2019
@nicolas-grekasnicolas-grekas merged commitb7520f7 intosymfony:4.4Aug 5, 2019
nicolas-grekas added a commit that referenced this pull requestAug 5, 2019
…erusse)This PR was merged into the 4.4 branch.Discussion----------[PhpUnitBridge] Add polyfill for PhpUnit namespace| Q             | A| ------------- | ---| Branch?       | 4.4| Bug fix?      | no| New feature?  | yes| BC breaks?    | no| Deprecations? |no| Tests pass?   | yes| Fixed tickets |#32844| License       | MIT| Doc PR        | NAThis PR provides PhpUnit >= 6 Namespaces class.This will simplify tests that have to be compatible with multiple version of PHPUnit```diff- if (class_exists('PHPUnit_Foo')) {-   PHPUnit_Foo::bar():- } else {-   \PHPUnit\Foo::bar();- }+ \PHPUnit\Foo::bar();```WIP  => waiting for#32941 to be greenCommits-------b7520f7 Add polyfill for PhpUnit namespace
nicolas-grekas added a commit that referenced this pull requestAug 5, 2019
This PR was squashed before being merged into the 3.4 branch (closes#32941).Discussion----------Use namespaced Phpunit classes| Q             | A| ------------- | ---| Branch?       | 3.4| Bug fix?      | yes| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | need#32940| Fixed tickets |#32844| License       | MIT| Doc PR        | NAThis PR simplify tests by using PhpUnit namespace introduced in#32940It also makes compatible with PHPUnit 8 (removed class PHPUnit_Framework_MockObject_MockObject)Commits-------797ea2e Use namespaced Phpunit classes
@jderussejderusse deleted the polyfill_namespace branchAugust 8, 2019 11:37
@nicolas-grekasnicolas-grekas modified the milestones:next,4.4Oct 27, 2019
This was referencedNov 12, 2019
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@fabpotfabpotfabpot approved these changes

@nicolas-grekasnicolas-grekasnicolas-grekas approved these changes

Assignees

No one assigned

Projects

None yet

Milestone

4.4

Development

Successfully merging this pull request may close these issues.

4 participants

@jderusse@nicolas-grekas@fabpot@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp