Call to undefined method PHP_CodeCoverage_Filter::getInstance()

前端 未结 7 2358
后悔当初
后悔当初 2020-12-04 14:13

I\'ve got a fresh copy of PHPUnit installed on my system (Ubuntu 11), but whenever I type phpunit in the console I get the following error:

PHP Fa

相关标签:
7条回答
  • 2020-12-04 15:04

    The method getInstance() seems to have been dropped from the class. https://github.com/sebastianbergmann/php-code-coverage/blob/master/PHP/CodeCoverage/Filter.php#L78

    Use the constructor instead if you come across this error. However, this is not applicable to the opening post as the command came from PHPUnit itself.

    0 讨论(0)
提交回复
热议问题