Skip to content

Call Extension::bootstrap() before creating the test suite #5913

Closed
@nikophil

Description

@nikophil

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! 😅

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions