Skip to content
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

Forbid PHPUnit annotations #10567

Merged
merged 1 commit into from Mar 6, 2023

Conversation

derrabus
Copy link
Member

@derrabus derrabus commented Mar 6, 2023

Following up on #10559, this PR introduces a PHPCS rule that will fail on PHPUnit annotations. This should serve as a constant reminder to switch them to attributes when merging up tests.

I've tested the rule locally by running PHPCS on the commits before and after @chr-hertel's changes.

@derrabus derrabus added this to the 3.0.0 milestone Mar 6, 2023
@derrabus derrabus requested a review from greg0ire March 6, 2023 10:28
Copy link
Member

@greg0ire greg0ire left a comment

Choose a reason for hiding this comment

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

I don't know of a way to avoid this repetition, when exactly should we revert this?

@derrabus
Copy link
Member Author

derrabus commented Mar 6, 2023

I don't know of a way to avoid this repetition

Neither do I. 😕

when exactly should we revert this?

Maybe we can move this whole block upstream once all of our projects use PHPUnit 10?

@derrabus derrabus merged commit 7568328 into doctrine:3.0.x Mar 6, 2023
@derrabus derrabus deleted the cs/forbid-phpunit-annotations branch March 6, 2023 11:02
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.

None yet

2 participants