在我贝哈特背景下,我已经列入PHPUnit的断言在the manual描述:如何在使用Symfony的PHPUnit Bridge时在Behat中使用PHPUnit?
require_once 'PHPUnit/Autoload.php';
require_once 'PHPUnit/Framework/Assert/Functions.php';
不过,我现在正在使用的Symfony的PHPUnit bridge,所以我已经打消了我明确地安装的PHPUnit和现在用的一个由桥进入。我需要这样做以避免描述为here的“多个版本”错误。
但是现在,我不能在behat中使用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实例?
太好了,你可以接受这个答案。 – lauda
@lauda恐怕你不能接受你自己对问题的回答2天。但我打算。 – Sam
您可能也想要向上游报告。由于这是Behat相关,它可能会看到一些牵引力(或已有更好的解决方案)。 – hakre