-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[PhpUnitBridge] Enable Prophecy integration via env variable #39387
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
Comments
Like |
Yes something like that. But with the extra constraint that |
We do remove prophecy by default in the bridge... |
This would be great! Right now we have a ton of deprecation messages when using phpunit 9.4 provided by the bridge that we can't really fix. PS: Unless we require |
…le (acasademont) This PR was merged into the 5.3-dev branch. Discussion ---------- [PhpUnitBridge] Add SYMFONY_PHPUNIT_REQUIRE env variable | Q | A | ------------- | --- | Branch? | 5.x | Bug fix? | no | New feature? | yes | Deprecations? | no | Tickets | Fix #39387 | License | MIT | Doc PR | symfony/symfony-docs#14913 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 add ```xml <server name="SYMFONY_PHPUNIT_REQUIRE" value="phpspec/prophecy-phpunit"/> ``` And the `phpspec/prophecy-phpunit` will be installed along the rest of the phpunit packages Commits ------- 94e1d87 Add SYMFONY_PHPUNIT_REQUIRE env variable Fixes #39387
Description
PHPUnit's built-in Prophecy integration is deprecated and will be removed soon. The replacement package
phpspec/prophecy-phpunit
however only works with PHPUnit 9.Maybe we can have
simple-phpunit
install that package if we're running PHPUnit 9 and a yet to be defined environment variable is set.The text was updated successfully, but these errors were encountered: