Problem/Motivation
There's todo in codebase pointing there
It was added because core required PHP < 5.4 before and can't use RecursiveCallbackFilterIterator
https://git.drupalcode.org/project/drupal/-/blob/9.1.x/core/lib/Drupal/C...
* @todo Use RecursiveCallbackFilterIterator instead of the $acceptTests
* parameter forwarding once PHP 5.4 is available.
* https://www.drupal.org/node/2532228
Proposed resolution
Use iterator to filter tests instead of separate method (needs to detail)
Remaining tasks
patch, review, commit
User interface changes
no
API changes
TBD
Data model changes
no
Release notes snippet
no