在使用Symfony 3.3时,我在配置PhpStorm IDE以使用http://symfony.com/doc/current/components/phpunit_bridge.html时遇到了问题.
我决定只下载phpunit.phar到bin,并用它来代替.
Symfony 3.4(和Symfony 4)甚至没有phpunit.xml.dist开箱即用,因此使用起来phpunit.phar很容易.
我使用flex安装了PHPUnit:
composer req phpunit
Run Code Online (Sandbox Code Playgroud)
这创建了phpunit.xml.dist,我能够通过命令行运行测试:
php bin/phpunit
Run Code Online (Sandbox Code Playgroud)
但我再次无法让PhpStorm使用它.
所以我下载了phpunit.phar它,它可以与提供的phpunit.xml.dist一起使用.
问题1: PhpStorm IDE有没有办法使用phpunit-bridge?
问题2: Symfony 4(phpunit-bridge或vanilla phpunit.phar)的最佳实践是什么?