我正在使用以下 turotiral 在我的山狮 macbook 上安装 behat 和 mink。
http://www.ifusio.com/blog/how-to-install-behat-mink-on-mac-osx
在您运行 behat 命令之前一切似乎都很好,然后我收到以下错误
PHP Fatal error: Class 'Symfony\Component\Console\Helper\ProgressHelper' not found in /Users/waseem/pear/share/pear/Symfony/Component/Console/Application.php on line 966
PHP Stack trace:
PHP 1. {main}() /Users/waseem/pear/bin/behat:0
PHP 2. Behat\Behat\Console\BehatApplication->__construct() /Users/waseem/pear/bin/behat:26
PHP 3. Symfony\Component\Console\Application->__construct() /Users/waseem/pear/share/pear/behat/src/Behat/Behat/Console/BehatApplication.php:32
PHP 4. Symfony\Component\Console\Application->getDefaultHelperSet() /Users/waseem/pear/share/pear/Symfony/Component/Console/Application.php:75
Fatal error: Class 'Symfony\Component\Console\Helper\ProgressHelper' not found in /Users/waseem/pear/share/pear/Symfony/Component/Console/Application.php on line 966
Call Stack:
0.0002 632656 1. {main}() /Users/waseem/pear/bin/behat:0
0.0036 1350424 2. Behat\Behat\Console\BehatApplication->__construct() /Users/waseem/pear/bin/behat:26
0.0036 1350504 3. Symfony\Component\Console\Application->__construct() /Users/waseem/pear/share/pear/behat/src/Behat/Behat/Console/BehatApplication.php:32
0.0036 1350816 4. Symfony\Component\Console\Application->getDefaultHelperSet() /Users/waseem/pear/share/pear/Symfony/Component/Console/Application.php:75
如果我通过 Github 方法安装它,一切似乎都很好,这只是让我烦恼为什么会发生这种情况。我的机器上没有 Symfony。
也许是因为我安装了 --alldeps ?我已经尝试卸载并再次尝试同样的问题