Closed
Description
Hello,
I'm wondering if it would be possible to call the bootstrap()
methods of an extension before the test suite is created?
This would allow third-party libraries relying on PHPUnit to call some boostraping call way sooner, even sooner than calling the data providers.
I've naively tested to move the whole block where bootstrapExtensions()
is called, before the call of buildTestSuite()
in \PHPUnit\TextUI\Application
and it worked in my current project. But I'm may not be aware of some PHPUnit internals which would be a good reason for things to happen in this! 😅