lint/phpunit/prefer-standalone-asserts-over-callback
In the code-quality set. Safe fix. Runs when phpunit is installed.
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)