Skip to content

[Bridge\PhpUnit] Fix composer installed phpunit detection #14854

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 4, 2015

Conversation

nicolas-grekas
Copy link
Member

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

@@ -4,7 +4,7 @@
use Symfony\Bridge\PhpUnit\DeprecationErrorHandler;

// Detect if we're loaded by an actual run of phpunit
if (!class_exists('PHPUnit_TextUI_Command', false)) {
if (!defined('PHPUNIT_COMPOSER_INSTALL') && !class_exists('PHPUnit_TextUI_Command', false)) {
Copy link
Member

Choose a reason for hiding this comment

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

Where is this constant defined and is it guaranteed that it won't be removed in the future?

Copy link
Member

Choose a reason for hiding this comment

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

@stof
Copy link
Member

stof commented Jun 4, 2015

👍

2 similar comments
@Tobion
Copy link
Contributor

Tobion commented Jun 4, 2015

👍

@xabbuh
Copy link
Member

xabbuh commented Jun 4, 2015

👍

@fabpot
Copy link
Member

fabpot commented Jun 4, 2015

Thank you @nicolas-grekas.

@fabpot fabpot merged commit 1b690c1 into symfony:2.7 Jun 4, 2015
fabpot added a commit that referenced this pull request Jun 4, 2015
…(nicolas-grekas)

This PR was merged into the 2.7 branch.

Discussion
----------

[Bridge\PhpUnit] Fix composer installed phpunit detection

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

Commits
-------

1b690c1 [Bridge\PhpUnit] Fix composer installed phpunit detection
@nicolas-grekas nicolas-grekas deleted the fix-phpunit-bridge branch June 5, 2015 23:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants