0

I am new to PHPUnit. I have installed PHPUnit using PEAR I am using PHP 5.4.7

When I give command phpunit --bootstrap src/autoload.php tests/MoneyTest I got the below error

Fatal error: Call to undefined method PHP_CodeCoverage_Filter::getInstance() in D:\xampp\php\phpunit on line 39

If I run the same code with Netbeans 7.4, the same error occurs.

Please provide your suggestions. Thanks in advance.

user2118784
  • 442
  • 1
  • 6
  • 18
  • possible duplicate of http://stackoverflow.com/questions/9186000/call-to-undefined-method-php-codecoverage-filtergetinstance – Royal Bg Feb 17 '14 at 18:06
  • Hi Royal, Thanks, but again it shows No releases available for package "pear.phpunit.de/PHPUnit" – user2118784 Feb 18 '14 at 07:15
  • Hi Royal, Thank you. I tried with composer. It throws an exception "You must enable the openssl extension to download files via https" – user2118784 Feb 18 '14 at 09:52

0 Answers0