#70482Fix regeneration of autoload files in testing context
Description
In testing context and in non composer mode, the additional class loading
information should be regenerated for each test run.
The code for that never worked and is now fixed with this change.