Call to undefined method PHP_CodeCoverage_Filter::getInstance()

前端 未结 7 2376
后悔当初
后悔当初 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条回答
  •  旧时难觅i
    2020-12-04 14:46

    While i had the same problem and managed to solve it using setting correct environment variables.

    You can get to the solve here http://rkrants.blogspot.in/2013/01/installing-phpunitpear-in-ubuntu-1210.html

    In short I had to re-install PHPUnit using pear after setting the variables correct.

    I used a Ubuntu 12.10 installation and it works perfectly now.

提交回复
热议问题