Skip to content

PHPUnit support with 3.x #4782

@cs278

Description

@cs278

Projects using Twig and the provided PHPUnit test case classes (e.g. IntegrationTestCase) are blocked from upgrading to supported PHPUnit versions as these test case classes rely on behaviour that is no longer works in PHPUnit ≥ 11.

An issue resolved this problem for Twig 4.x #3810 but I cannot see any evidence that 4.x is imminent.

@MauricioFauth Opened a PR #4477 to address this in what claims to be backwards compatible way but that never went anywhere.

It seems to me that Twig could really do with shipping a solution to this problem to allow consumers to upgrade PHPUnit without a major bump to Twig, as things stands it looks like projects that use both Twig/PHPUnit must upgrade to 4.x/11.x at the same time.

If #4477 is truly backwards compatible could that be merged? Alternatively could new test case classes be provided in Twig that are compatible with PHPUnit ≥ 11?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions