+ $tests = TestDiscovery::scanDirectory("Drupal\\Tests\\", "$root/core/tests/Drupal/Tests");
+ $tests = array_flip(array_filter(array_flip($tests), function ($test_class) {
+ // The Listeners directory does not contain tests. Use the class name
+ // to be compatible with all operating systems.
+ return !preg_match('/^Drupal\\\\Tests\\\\Listeners\\\\/', $test_class);
+ }));
+ $this->addTestFiles($tests);