Skip to content

Conversation

@rodrigoprimo
Copy link
Collaborator

Per the PHPUnit manual: "A data provider method must be public and static" (https://docs.phpunit.de/en/12.0/writing-tests-for-phpunit.html).

A similar change was done in the PHPCS repository: PHPCSStandards/PHP_CodeSniffer#255

Tests will continue to work when running with PHPUnit < 10.

Per the PHPUnit manual: "A data provider method must be public and static" (https://docs.phpunit.de/en/12.0/writing-tests-for-phpunit.html).

A similar change was done in the PHPCS repository: PHPCSStandards/PHP_CodeSniffer#255

Tests will continue to work when running with PHPUnit < 10.
@jrfnl
Copy link
Member

jrfnl commented Apr 11, 2025

Thanks @rodrigoprimo ! I'd like to verify this is complete, but it looks like this PR was branched off against a much older version of develop. Could you please rebase the PR against the current develop ?

@jrfnl
Copy link
Member

jrfnl commented Apr 11, 2025

Actually, looking at the current develop, I believe this is a duplicate of PR #161, which already sorted that out and considering the tests on the current develop run against PHPUnit 10 + 11 since PR #162, this PR is probably redundant.

@rodrigoprimo
Copy link
Collaborator Author

@jrfnl, apologies for the noise. I thought I had updated my develop branch recently, but I clearly hadn't.

@rodrigoprimo rodrigoprimo deleted the static-data-providers-for-tests branch April 11, 2025 15:22
@jrfnl
Copy link
Member

jrfnl commented Apr 11, 2025

Always pull before push ;-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

2 participants