Skip to content

Update CI to cover PHPUnit 12 #179

@j13k

Description

@j13k

Description

PHPUnit 12 has removed support for docblock annotations in favour of PHP attributes for data providers and other features. According to How to use Data Providers in PHPUnit 12, our test suite will need to be updated to use attributes instead of docblock annotations.

Reference:

* @dataProvider getTestSpecs

Impact

  • Updating to attributes may require dropping support for older PHP versions that do not support attributes (PHP < 8.0).
  • This update should be targeted for a minor version release.

Tasks

  • Refactor test suite to use attributes for data providers and other relevant cases.
  • Update CI to test against PHPUnit 12.
  • Verify compatibility with supported PHP versions.
  • Document any changes in supported PHP versions in the README.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    Status

    Todo

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions