-
Notifications
You must be signed in to change notification settings - Fork 63
[AssertCompareToSpecificMethodRector ] Remove inversion of parameters in Assert calls #423
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
Conversation
|
Thanks! I've approved the CI to get feedback. Could you look at it? To fix this before pushing, run tests locally with |
f9728c0 to
faf49a9
Compare
faf49a9 to
733473a
Compare
It should be better now |
.../CodeQuality/Rector/MethodCall/AssertCompareToSpecificMethodRector/Fixture/get_class.php.inc
Outdated
Show resolved
Hide resolved
rules/CodeQuality/Rector/MethodCall/AssertCompareToSpecificMethodRector.php
Show resolved
Hide resolved
| public function test() | ||
| { | ||
| $this->assertCount(5, $something); | ||
| $this->assertSame(count($something), 5); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you extract this to a new test fixture? It looks unrelated to change here.
By convention we separate files that have changes, and those that are skipped. So they're easier to read and test separately
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
|
Perfect! Thank you |
No description provided.