-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
DX: Add AutoReview/ComposerTest #3556
Conversation
tests/AutoReview/ComposerTest.php
Outdated
$composerJson = json_decode(file_get_contents(__DIR__.'/../../composer.json'), true); | ||
|
||
if (!isset($composerJson['extra']['branch-alias'])) { | ||
$this->assertTrue(true); // composer.json doesn't contain branch alias, all good! |
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.
? maybe better to just increase the assert count and not an always pass assert?
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.
I was looking for that at night, could you please remind me the method ?
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.
addToAssertionCount
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.
That's why I couldn't find it :D
ker@dus:~/github/PHP-CS-Fixer λ git grep addToAssertionCount
ker@dus:~/github/PHP-CS-Fixer λ
Inspired by #3555
So, during merging one line into another, I will not mess up with branch aliasing