如何在 Symfony 4 / Symfony 5 中安装 phpUnit?
How to install phpUnit in Symfony4 / Symfony5?
当我直接使用 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?
我不小心 运行 vendor/bin/simple-phpunit
脚本,结果它在执行时会在本地下载 phpUnit 库。
当我直接使用 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?
我不小心 运行 vendor/bin/simple-phpunit
脚本,结果它在执行时会在本地下载 phpUnit 库。