-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[PhpUnitBridge] Add SYMFONY_PHPUNIT_REQUIRE env variable #40059
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
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The fabbot seems to be complaining about an unrelated line. Can fix it if necessary! |
aa90153
to
bbe9638
Compare
bbe9638
to
94e1d87
Compare
nicolas-grekas
approved these changes
Feb 1, 2021
acasademont
added a commit
to acasademont/symfony-docs
that referenced
this pull request
Feb 1, 2021
So if I understand this right, I can also require a specific version? <server name="SYMFONY_PHPUNIT_REQUIRE" value="phpspec/prophecy-phpunit:^1.0"/> |
Yes exactly! |
OskarStark
approved these changes
Feb 2, 2021
fabpot
approved these changes
Feb 5, 2021
Thank you @acasademont. |
javiereguiluz
added a commit
to symfony/symfony-docs
that referenced
this pull request
Feb 8, 2021
…IT_REQUIRE env variable (acasademont) This PR was merged into the 5.3-dev branch. Discussion ---------- [Testing] [PHPUnitBridge] Docs for the new SYMFONY_PHPUNIT_REQUIRE env variable Code PR: symfony/symfony#40059 Commits ------- 79a2112 Docs for the new SYMFONY_PHPUNIT_REQUIRE env variable
Merged
Was searching today if this is even possible and found then this new variable @acasademont Thank you for this 👍 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
As discussed on #39387, this PR adds a new
SYMFONY_PHPUNIT_REQUIRE
env variable to add packages to the phpunit bridge installation. This is useful for adding phpunit plugins (ie: https://github.com/phpspec/prophecy-phpunit) without having to add them directly to the main app composer.json.On my
phpunit.xml.dist
file I can now addAnd the
phpspec/prophecy-phpunit
will be installed along the rest of the phpunit packages