8000 [PhpUnitBridge] Fix detection of PHPUnit 5 by enumag · Pull Request #23015 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[PhpUnitBridge] Fix detection of PHPUnit 5 #23015

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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 2, 2017
Merged

Conversation

enumag
Copy link
Contributor
@enumag enumag commented Jun 1, 2017
Q A
Branch? 3.3
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets
License MIT
Doc PR

Codeception 2.3 supports both PHPUnit 5 and PHPUnit 6 by defining aliases. This confuses symfony/phpunit-bridge and it tries to load BC code for PHPUnit 5 even though I'm using PHPUnit 6.

@stof
Copy link
Member
stof commented Jun 1, 2017

#22925 did a similar change, and we had to revert it in #22930 because it broke other cases

@enumag
Copy link
Contributor Author
enumag commented Jun 1, 2017

@stof Oh. In that case how about something like this?

@nicolas-grekas nicolas-grekas added this to the 3.3 milestone Jun 2, 2017
Copy link
Member
@nicolas-grekas nicolas-grekas left a comment

Choose a reason for hiding this comment

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

👍 that should do it

@fabpot
Copy link
Member
fabpot commented Jun 2, 2017

Thank you @enumag.

@fabpot fabpot merged commit dfb5549 into symfony:3.3 Jun 2, 2017
fabpot added a commit that referenced this pull request Jun 2, 2017
This PR was merged into the 3.3 branch.

Discussion
----------

[PhpUnitBridge] Fix detection of PHPUnit 5

| Q             | A
| ------------- | ---
| Branch?       | 3.3
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets |
| License       | MIT
| Doc PR        |

Codeception 2.3 supports both PHPUnit 5 and PHPUnit 6 by defining [aliases](https://github.com/Codeception/Codeception/blob/2.3/shim.php). This confuses symfony/phpunit-bridge and it tries to load  BC code for PHPUnit 5 even though I'm using PHPUnit 6.

Commits
-------

dfb5549 [PhpUnitBridge] Fix detection of PHPUnit 5
@fabpot fabpot mentioned this pull request Jun 5, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants
0