当我直接用composer req phpunit/phpunit
安装phpUnit时,会收到警告消息:
Adding phpunit/phpunit as a dependency is discouraged
in favor of Symfony's PHPUnit Bridge.
* Instead:
1. Remove it now: composer remove --dev phpunit/phpunit
2. Use Symfony's bridge: composer require --dev phpunit
所以我按照消息说的去做,但是在composer require --dev phpunit
之后,它安装了symfony/test-pack
,后者仅安装了Panther和phpUnit桥,但是phpUnit本身却无处可见。
如何在Symfony4中正确安装phpUnit?
答案 0 :(得分:1)
好吧,我偶然地运行了vendor/bin/simple-phpunit
脚本,事实证明它是在本地下载phpUnit库的。