lint/phpunit/no-negated-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
Turns not-operator comparisons to their method name alternatives in PHPUnit TestCase
Configuration
[lint.rules]
"phpunit/no-negated-assertion" = "error"
To skip it in some files or lines, add an override or an ignore comment.
Replaces
AssertNotOperator(rector-phpunit)