Skip to content

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

Merged
merged 1 commit into from
Aug 4, 2025

Conversation

xabbuh
Copy link
Member

@xabbuh xabbuh commented Aug 1, 2025

Q A
Branch? 7.4
Bug fix? no
New feature? no
Deprecations? no
Issues
License MIT

@xabbuh
Copy link
Member Author

xabbuh commented Aug 1, 2025

this is a first step towards running our tests with PHPUnit 12.3, contains #58370 which needs to be merged first

@xabbuh xabbuh force-pushed the phpunit11-attributes branch from 482bc5d to 4d390cb Compare August 1, 2025 16:21
@nicolas-grekas
Copy link
Member

This has to be automated. Is that the case?
Otherwise, we're going to have a hard time when merging up, either immediately when merging into 8.0 or during the remaining 6.4 dev cycle

@@ -19,6 +20,7 @@
*
* @covers \Symfony\Bridge\PhpUnit\ClockMock
*/
#[CoversClass(ClockMock::class)]
Copy link
Contributor

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.

Copy link
Member Author

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.

@xabbuh xabbuh force-pushed the phpunit11-attributes branch from 4d390cb to e8f65ff Compare August 1, 2025 19:22
@xabbuh xabbuh force-pushed the phpunit11-attributes branch 5 times, most recently from 3d02008 to 986a8bc Compare August 3, 2025 12:10
@xabbuh xabbuh force-pushed the phpunit11-attributes branch 5 times, most recently from 753d83e to 721a920 Compare August 4, 2025 06:43
@xabbuh xabbuh force-pushed the phpunit11-attributes branch from 721a920 to 982f89c Compare August 4, 2025 07:05
@nicolas-grekas
Copy link
Member

Thank you @xabbuh.

@nicolas-grekas nicolas-grekas merged commit 6df1a43 into symfony:7.4 Aug 4, 2025
11 of 13 checks passed
@xabbuh xabbuh deleted the phpunit11-attributes branch August 4, 2025 07:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy