-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
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:
yaml-lint/tests/YamlLintTest.php
Line 22 in 46de568
| * @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
Projects
Status
Todo