您好,我是PHPUnit的新手,并尝试执行测试示例:EmailTest by Composer,链接是:https://phpunit.de/getting-started/phpunit-8.html
我得到了command_Line中的文字
$ phpunit --bootstrap vendor/autoload.php tests/EmailTest
PHPUnit 3.7.21 by Sebastian Bergmann.
Cannot open file "vendor/autoload.php".
看来你混淆了不同的PHPUnit安装。
例如,您可能已经使用 Composer 安装 PHPUnit,并将 Composer 生成的自动加载器配置为 PHPUnit 的引导脚本,但随后您使用vendor/bin/phpunit
以外的可执行文件调用 PHPUnit。