-
Notifications
You must be signed in to change notification settings - Fork 351
Use PHPUnit 12 where possible #7974
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
Use PHPUnit 12 where possible #7974
Conversation
PHPStan issues unrelated: #7975 |
b074e2d
to
5b6efcb
Compare
5b6efcb
to
220adc7
Compare
#[\PHPUnit\Framework\Attributes\DataProvider('provideMultipleTags')] | ||
public function testExtractAll($html, array $counts): void | ||
public function testExtractAll(string $html, array $counts, int $count): void |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Methods require to match dataProviders return in 12.* version. Same data provider used for different methods.
*/ | ||
#[\PHPUnit\Framework\Attributes\DataProvider('provideLifecycle')] | ||
public function testOnFlushOtherUser($changeset): void | ||
public function testOnFlushOtherUser($changeset, $expectedFields, bool $insert = true): void |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Methods require to match dataProviders return in 12.* version. Same data provider used for different methods.
What's in this PR?
Use PHPUnit 12 where possible. See also: #7880
Why?
Use latest version and get rid of outdated dependencies. Open the version constraint that PHP 8.3 and 8.4 run on PHPUnit 12.