Skip to content

fix: PhpUnitTestClassRequiresCoversFixer must run before PhpUnitAttributesFixer#8444

Merged
keradus merged 1 commit intoPHP-CS-Fixer:masterfrom
6b7562617765726c6f73:prio_php_unit_test_class_requires_covers_php_unit_attributes
Feb 22, 2025
Merged

fix: PhpUnitTestClassRequiresCoversFixer must run before PhpUnitAttributesFixer#8444
keradus merged 1 commit intoPHP-CS-Fixer:masterfrom
6b7562617765726c6f73:prio_php_unit_test_class_requires_covers_php_unit_attributes

Conversation

@kubawerlos
Copy link
Copy Markdown
Member

No description provided.

@kubawerlos kubawerlos enabled auto-merge (squash) February 19, 2025 12:21
@coveralls
Copy link
Copy Markdown

Coverage Status

coverage: 94.952%. remained the same
when pulling 9346605 on 6b7562617765726c6f73:prio_php_unit_test_class_requires_covers_php_unit_attributes
into 9a2f33b on PHP-CS-Fixer:master.

*
* Must run before FullyQualifiedStrictTypesFixer, NoEmptyPhpdocFixer, PhpdocSeparationFixer, PhpdocTrimConsecutiveBlankLineSeparationFixer, PhpdocTrimFixer.
* Must run after PhpUnitDataProviderNameFixer, PhpUnitDataProviderReturnTypeFixer, PhpUnitDataProviderStaticFixer.
* Must run after PhpUnitDataProviderNameFixer, PhpUnitDataProviderReturnTypeFixer, PhpUnitDataProviderStaticFixer, PhpUnitTestClassRequiresCoversFixer.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

It also must run after php_unit_size_class and php_unit_internal_class.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

It also must run after php_unit_size_class and php_unit_internal_class.

And also probably a few others... @Wirone please focus and review this PR, which is fixing priorities between those 2 fixers. Have you heard about Single-responsibility principle? It is not forbidden to apply it to pull requests, you know.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

it is a good note. on PR level, it's hard to say in advance if this was not done due to lack of awareness that it should be done as well, or because it was explicitly not plan as out of scope - no need to be harsh.

same time, totally OK to make it out of scope and solve separately.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

moved to #8455 . if one of you can pick it up later, fantastic.

@keradus keradus disabled auto-merge February 22, 2025 22:51
@keradus keradus merged commit 4684cbe into PHP-CS-Fixer:master Feb 22, 2025
@keradus keradus deleted the prio_php_unit_test_class_requires_covers_php_unit_attributes branch February 22, 2025 22:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants