Issue #3497431 by mondrake, catch, larowlan, godotislate, jonathan1055,...
Issue #3497431 by mondrake, catch, larowlan, godotislate, jonathan1055, fjgarlin, xjm: Deprecate TestDiscovery test file scanning, use PHPUnit API instead
(cherry picked from commit 375995de)