lint/phpunit/prefer-standalone-asserts-over-callback
In the lint-recommended preset and every stricter one. In Rector’s rector-phpunit/phpunit-code-quality set. Needs the phpunit extension. Safe fix.
What it does
Replaces identical compare in $this->callable() sole return to standalone PHPUnit asserts that show more detailed failure messages
Configuration
[lint.rules]
"phpunit/prefer-standalone-asserts-over-callback" = "error"
To skip it in some files or lines, add an override or an ignore comment.
Replaces
WithCallbackIdenticalToStandaloneAsserts(rector-phpunit)