lint/phpunit/prefer-comparison-assertion
In the lint-recommended preset and every stricter one. In Rector’s rector-phpunit/phpunit-code-quality, rector-phpunit/phpunit-narrow-asserts sets. Needs the phpunit extension. Safe fix.
What it does
Replace assertTrue()/assertFalse() on a comparison, instanceof, isset, count or strpos with the specific assertion.
Configuration
[lint.rules]
"phpunit/prefer-comparison-assertion" = "error"
To skip it in some files or lines, add an override or an ignore comment.
Replaces
AssertComparisonToSpecificMethod(rector-phpunit)