Skip to content

IntegrationTestCase: Compatibility with PHPUnit 10 #3810

Description

@SiebelsTim

PHPUnit 10 has breaking changes regarding data providers. These must be static now.

However, \Twig\Test\IntegrationTestCase uses non-static data providers.

The errors look like this:

* Data Provider method MyTest::getTests() is not static                                                                                  
                                                                                                                                                                                                                   
* Data Provider method MyTest::getTests() expects an argument    

Unfortunately, the needed change looks like a breaking change. IntegrationTestCase::getTests depends on $this->getFixturesDir() which is abstract. Consumers would need to change this as well then.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions