Adi*_*oui 2 php testing phpunit symfony composer-php
我想在Symfony 2.3.24/Windows7/PHP 5.4.7下熟悉测试(单元,功能).
似乎PHPUnit安装正确(通过Composer),但是当我运行phpunit -c app/命令时,我收到以下错误:
Warning: require_once(PHP/CodeCoverage/Filter.php): failed to open stream: No such file or directory in C:\xampp\php\phpunit on line 38
Fatal error: require_once(): Failed opening required 'PHP/CodeCoverage/Filter.php' (include_path='.;C:\xampp\php\PEAR') in C:\xampp\php\phpunit on line 38
Run Code Online (Sandbox Code Playgroud)
我用谷歌搜索这个问题无济于事.我另外在官方的PHPUnit网站上找到了The code coverage report feature requires the Xdebug (2.1.3 or later) and tokenizer extensions.
你怎么看待这一切?非常感谢您的帮助.
在当前版本的PHPUnit中,phpunit脚本不PHP/CodeCoverage/Filter.php直接包含.您似乎正在使用过时版本的PHPUnit和/或混合使用Composer/PEAR.
请按照https://phpunit.de/getting-started.html上的说明正确安装PHPUnit.而http://thephp.cc/news/2015/01/phpunit-migration-from-pear-to-phar介绍了如何从基于PEAR安装迁移到作曲或药业.
| 归档时间: |
|
| 查看次数: |
2752 次 |
| 最近记录: |