Call to undefined method PHP_CodeCoverage_Filter::getInstance()

前端 未结 7 2386
后悔当初
后悔当初 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 14:51

    The executable script that loads PHPUnit must not have been updated when going to 3.6.x. Reinstall it.

    sudo pear uninstall phpunit/PHPUnit
    sudo pear install phpunit/PHPUnit
    

    If this doesn't work, make sure PEAR itself is up-to-date.

提交回复
热议问题