lint/phpunit/require-final-test-case
In the lint-recommended preset and every stricter one. In Rector’s rector-phpunit/phpunit-code-quality, rector/rector-preset sets. Needs the phpunit extension. Safe fix.
What it does
Make PHPUnit test case final
Configuration
[lint.rules]
"phpunit/require-final-test-case" = "error"
To skip it in some files or lines, add an override or an ignore comment.
Replaces
FinalizeTestCaseClass(rector)