-
-
Notifications
You must be signed in to change notification settings - Fork 9.8k
replace PHPUnit annotations with attributes #61299
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
Conversation
xabbuh
commented
Aug 1, 2025
| Q | A |
|---|---|
| Branch? | 7.4 |
| Bug fix? | no |
| New feature? | no |
| Deprecations? | no |
| Issues | |
| License | MIT |
|
this is a first step towards running our tests with PHPUnit 12.3, contains #58370 which needs to be merged first |
482bc5d to
4d390cb
Compare
|
This has to be automated. Is that the case? |
| * | ||
| * @covers \Symfony\Bridge\PhpUnit\ClockMock | ||
| */ | ||
| #[CoversClass(ClockMock::class)] |
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.
Starting here in the diff, the annotations sometimes remain and only the attributes are added, also see next case src/Symfony/Bridge/PhpUnit/Tests/DeprecationErrorHandler/ConfigurationTest.php.
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.
This is intended because we need to ensure that the PhpUnitBridge is working with PHPUnit 9.6 (we have a job for that) where the attributes don’t exist.
4d390cb to
e8f65ff
Compare
src/Symfony/Bridge/PhpUnit/Tests/Fixtures/coverage/tests/CoversTest.php
Outdated
Show resolved
Hide resolved
src/Symfony/Bundle/SecurityBundle/Tests/Functional/SecurityTest.php
Outdated
Show resolved
Hide resolved
src/Symfony/Bundle/FrameworkBundle/Tests/Functional/NotificationTest.php
Outdated
Show resolved
Hide resolved
3d02008 to
986a8bc
Compare
753d83e to
721a920
Compare
721a920 to
982f89c
Compare
|
Thank you @xabbuh. |