Skip to content

add support for PHPUnit 11 and 12 #673

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: 2.x
Choose a base branch
from

Conversation

LordSimal
Copy link
Contributor

@LordSimal LordSimal commented Apr 12, 2025

Refs: #662

/**
* @dataProvider provideInvalidPositions
*/
#[DataProvider('provideInvalidPositions')]
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yield [-91, 0];
yield [91, 0];
yield [0, -181];
yield [0, 181];
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To be honest: I never knew generators work for dataproviders, but it's not how PHPUnit recommend them to be used.
Therefore I changed it to the recommended array syntax

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant