Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Added @covers-class information to *RuleTests #703

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

Closed
staabm wants to merge 2 commits into phpstan:2.0.x from staabm:covers

Conversation

@staabm
Copy link
Contributor

@staabm staabm commented Oct 26, 2025
edited
Loading

goal: speedup infection process

see phpstan/build-infection#11 (comment)

@staabm staabm changed the title (削除) Added @covers-class informtation to *RuleTests (削除ここまで) (追記) Added @covers-class information to *RuleTests (追記ここまで) Oct 26, 2025
@staabm staabm marked this pull request as ready for review October 26, 2025 09:01
Copy link
Contributor Author

staabm commented Oct 26, 2025
edited
Loading

we could add this annotations (or attributes equivalent on new phpversions) with a auto-fixable phpstan rule.

doing manually for now to see whether its worth it

Copy link
Member

What exactly @covers achieves in Infection? What if we fix a bug in NodeScopeResolver but write a test for a specific rule?

@staabm staabm deleted the covers branch October 28, 2025 06:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /