- Issue created by @mondrake
- 🇮🇹Italy mondrake 🇮🇹
With this in, 📌 Convert test annotation to attributes in Drupal/Test/Component Active and 📌 Convert test annotations to attributes in Drupal/BuildTests Active will be passing.
Found a bug introduced by 📌 Deprecate TestDiscovery test file scanning, use PHPUnit API instead Active : PHPUnit's test discovery uses diffs between declared classes to identify if a test class is present in the scanned file.
This works as long as the file is loaded to PHP for the first time.
Apparently in some cases the legacy TestDiscovery, whose results the tests compare to PHPUnit's, load the classes too, before PHPUnit that in this case complains about a supposedly missing test class in the file.
Just swap the sequence of discovery in the tests - run first PHPUnit's then legacy TestDiscovery before comparing, instead of the other way round as in HEAD right now.
Active
11.0 🔥
phpunit
With this in, 📌 Convert test annotation to attributes in Drupal/Test/Component Active and 📌 Convert test annotations to attributes in Drupal/BuildTests Active will be passing.