我尝试使用 net beans 运行 magento 测试自动化框架,但出现此错误
PHP Warning: require_once(SymfonyComponents/YAML/sfYaml.php): failed to open stream: No such file or directory in C:\Programs\mtaf\framework\Mage\Selenium\Helper\File.php on line 29
PHP Fatal error: require_once(): Failed opening required 'SymfonyComponents/YAML/sfYaml.php' (include_path='C:\Programs\mtaf\framework;C:\Programs\mtaf\testsuite;.;C:\Programs\PHP\pear') in C:\Programs\mtaf\framework\Mage\Selenium\Helper\File.php on line 29
但是所有的梨组件和单元组件都安装成功。
以下命令用于安装 pear 和 php 单元。
C:\Programs\PHP>pear upgrade
C:\Programs\PHP>pear channel-discover pear.phpunit.de
C:\Programs\PHP>pear channel-discover pear.symfony-project.com
C:\Programs\PHP>pear channel-discover components.ez.no
C:\Programs\PHP>pear install phpunit/PHPUnit
C:\Programs\PHP>pear install phpunit/PHPUnit_Selenium
C:\Programs\PHP>pear install phpunit/DbUnit
C:\Programs\PHP>pear install symfony/YAML