Skip to content
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

Tweaking phpunit post-install message to give more information/context #811

Merged
3 commits merged into from Aug 19, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
16 changes: 10 additions & 6 deletions phpunit/phpunit/4.7/post-install.txt
@@ -1,7 +1,11 @@
<bg=yellow;fg=black> </>
<bg=yellow;fg=black> Adding phpunit/phpunit as a dependency is discouraged in favor of Symfony's PHPUnit Bridge. </>
<bg=yellow;fg=black> </>
<bg=yellow;fg=black> </>
<bg=yellow;fg=black> Suggest: install Symfony's PHPUnit Bridge instead of phpunit/phpunit </>
<bg=yellow;fg=black> </>

* <fg=blue>Instead</>:
1. Remove it now: <comment>composer remove --dev phpunit/phpunit</>
2. Use Symfony's bridge: <comment>composer require --dev phpunit</>
Symfony's PHPUnit bridge is a wrapper around PHPUnit that adds reports for deprecated code
calls, an isolated PHPUnit that's separate from the dependencies of your app and more.
See: https://symfony.com/doc/current/components/phpunit_bridge.html.

* <fg=blue>To install the PHPUnit bridge</>:
1. Remove PHPUnit: <comment>composer remove --dev phpunit/phpunit</>
2. Install Symfony's bridge: <comment>composer require --dev phpunit</>