Installing Drupal 9 with the drupal/recommended-project Composer package ships without PHPUnit. Why? (In Drupal 8 it is included. The documentation only tells about Drupal 8.)
Which version of PHPUnit should I use? In this post kiamlaluno answered that Drupal 9 supports PHPUnit 8 at the moment; therefore, I think that version 8.5 is OK, isn't it?
I installed PHPUnit 8.5.8 with composer, but when I try to use it, I get this error.
Class "Symfony\Bridge\PhpUnit\SymfonyTestsListener" does not exist.
This post suggest installing symfony/phpunit-bridge, Composer choose version 5.1, but it didn't work, and I got the same error message. Is this a wrong version for Drupal 9 and PHPUnit 8.5.8? It solved the issue commenting out the listener class in phpunit.xml. But I'm not shure if this is the right way.
- Is there anywhere a documentation/tutorial for the actual official release of drupal to get PHPUnit running the recommended way?