【发布时间】:2017-07-28 11:07:47
【问题描述】:
在我的 Behat 上下文中,我已经包含了 PHPUnit 的断言,如 the manual 中所述:
require_once 'PHPUnit/Autoload.php';
require_once 'PHPUnit/Framework/Assert/Functions.php';
但是,我现在使用的是 Symfony 的 PHPUnit bridge,所以我已经删除了我明确安装的 PHPUnit,并使用了网桥引入的那个。我需要这样做以避免here 描述的“多个版本”错误。
但是现在,我不能使用 PHPUnit!
PHP Warning: Uncaught exception 'Symfony\Component\Debug\Exception\ContextErrorException' with message 'Warning: require_once(PHPUnit/Autoload.php): failed to open stream: No such file or directory'
如何引用 PHPUnit 网桥引入的 PHPUnit 实例?
【问题讨论】: