Skip to content

DX: make all testFix* methods have first parameter $expected#9289

Merged
kubawerlos merged 2 commits intoPHP-CS-Fixer:masterfrom
6b7562617765726c6f73:dx_make_sure_all_testFix_methods_starts_with_expected
Dec 11, 2025
Merged

DX: make all testFix* methods have first parameter $expected#9289
kubawerlos merged 2 commits intoPHP-CS-Fixer:masterfrom
6b7562617765726c6f73:dx_make_sure_all_testFix_methods_starts_with_expected

Conversation

@kubawerlos
Copy link
Copy Markdown
Member

No description provided.

@coveralls
Copy link
Copy Markdown

Coverage Status

coverage: 93.186%. remained the same
when pulling 042fad8 on 6b7562617765726c6f73:dx_make_sure_all_testFix_methods_starts_with_expected
into e4461ae on PHP-CS-Fixer:master.

continue;
}

self::assertSame('expected', $parameters[0]->getName(), "First parameter name in {$reflectionObject->getName()}::{$method->getName()} is incorrectly named.");
Copy link
Copy Markdown
Member

@keradus keradus Dec 11, 2025

Choose a reason for hiding this comment

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

shouldn't we check for input and configuration too ?

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.

Definitely, I will do that in a separate PR. I play with Claude Code to make the changes to learn it.

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.

we already have damn close test for test parameters
#9291

@kubawerlos kubawerlos merged commit eac80b8 into PHP-CS-Fixer:master Dec 11, 2025
59 of 61 checks passed
@kubawerlos kubawerlos deleted the dx_make_sure_all_testFix_methods_starts_with_expected branch December 11, 2025 21:36
keradus added a commit that referenced this pull request Dec 11, 2025
keradus added a commit that referenced this pull request Dec 11, 2025
stakovicz pushed a commit to stakovicz/PHP-CS-Fixer that referenced this pull request Jan 4, 2026
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.

3 participants