-
-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: Class PHPUnit\Framework\TestCase not found and could not be autoloaded #143
Comments
I get similar errors:
Executing against some specific modules works fine, but executing against others doesn't (ctools and page_manager, to name two) |
drupal/core-dev to the resque 🗡️ See: https://drupal.stackexchange.com/a/293684 Basically when working on D8.9, use:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello, I don't think this is a bug, but am hoping someone might be able to help me solve the problem, which other people might have.
I installed Drupal using Composer and drupal/recommended-project. When I run drupal-check on a module directory, I get the following error:
Class PHPUnit\Framework\TestCase not found and could not be autoloaded
How can you remove this error? It looks like PHPUnit is not included with drupal/recommended-project. The instructions at the following page just say to do 'composer install' or 'composer update', but I did that and still no PHPUnit:
https://www.drupal.org/docs/8/phpunit/running-phpunit-tests
The text was updated successfully, but these errors were encountered: