PHP致命错误:无法重新声明类PHP_CodeCoverage_Filter

时间:2014-04-13 23:31:44

标签: ubuntu phpunit code-coverage

我刚安装了PHP-CodeCoverage pear包,现在当我尝试运行测试用例时会出现此错误,我将把堆栈跟踪放在下面以获取更多详细信息;我使用操作系统ubuntu 12.04LTS;

PHP Fatal error:  Cannot redeclare class PHP_CodeCoverage_Filter in /usr/share/php/PHP/CodeCoverage/Filter.php on line 58
PHP Stack trace:
PHP   1. {main}() /usr/local/bin/phpunit:0
PHP   2. PHPUnit_TextUI_Command::main() /usr/local/bin/phpunit:583
PHP   3. PHPUnit_TextUI_Command->run() phar:///usr/local/bin/phpunit/phpunit/TextUI/Command.php:132
PHP   4. PHPUnit_Runner_BaseTestRunner->getTest() phar:///usr/local/bin/phpunit/phpunit/TextUI/Command.php:153
PHP   5. PHPUnit_Runner_BaseTestRunner->loadSuiteClass() phar:///usr/local/bin/phpunit/phpunit/Runner/BaseTestRunner.php:105
PHP   6. PHPUnit_Runner_StandardTestSuiteLoader->load() phar:///usr/local/bin/phpunit/phpunit/Runner/BaseTestRunner.php:162
PHP   7. PHPUnit_Util_Fileloader::checkAndLoad() phar:///usr/local/bin/phpunit/phpunit/Runner/StandardTestSuiteLoader.php:78
PHP   8. PHPUnit_Util_Fileloader::load() phar:///usr/local/bin/phpunit/phpunit/Util/Fileloader.php:77
PHP   9. include_once() phar:///usr/local/bin/phpunit/phpunit/Util/Fileloader.php:93
PHP  10. PHPUnitVersionHelper::includeRequiredFiles() /var/www/orangehrm/symfony/test/PluginAllTests.php:3
PHP  11. require_once() /var/www/orangehrm/symfony/test/util/PHPUnitVersionHelper.php:42
PHP  12. require_once() /usr/share/php/PHPUnit/Autoload.php:46

0 个答案:

没有答案