Skip to content

PHPUnit v12.x support for FilesystemAdapterTestCase #1867

Open
@aedart

Description

@aedart

Feature Request

The FilesystemAdapterTestCase is compatible with PHPUnit ^9.5.11|^10.0 (according to the root composer.json). Furthermore, I can confirm that it also works with PHPUnit v11.x, via my own tests. However, the test-case is not compatible with PHPUnit version 12.x. The reason is that annotations (e.g. @test, @before, @after... etc.) are no longer supported in the latest version. They have been deprecated in version 11 (see metadata heading).

Attributes must be used instead.

Possible Solution

It is possible to use the provided Attributes from PHPUnit, and still keep the annotations. This will ensure that developers with older PHPUnit can still continue to function., whilst newer versions of PHPUnit are simply going to ignore the annotations and use the Attributes.

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