I installed phpunit with all dependencies:
pear install -a phpunit/phpunit
When I run a test with a failed assertion it complains it can't find PHPUnit_Extensions_Story_TestCase.
How do I fix it?
The package you are missing is pear.phpunit.de/PHPUnit_Story
as you can find on the pear repository page and the GitHub repository.
PS: I found this by typing the class name into google.
PEAR installation has been deprecated, currently is better to use Composer for it, here is the PHPUnit installation guide just adding bellow lines
"require-dev": {
"phpunit/phpunit": "4.3.*",
"phpunit/phpunit-story": "*",
"phpunit/php-invoker": "*",
"phpunit/dbunit": ">=1.2",
"phpunit/phpunit-selenium": ">=1.2",
"phpunit/phpunit-story": "*"
}
or bettersudo composer global require 'phpunit/phpunit=4.3.*'
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With