lint/phpunit/prefer-self-call
Not in any preset. Needs the phpunit extension. Safe fix.
What it does
Changes PHPUnit calls from $this->assert*() to self::assert*()
Configuration
[lint.rules]
"phpunit/prefer-self-call" = "error"
To skip it in some files or lines, add an override or an ignore comment.
Replaces
PreferPHPUnitSelfCall(rector-phpunit)
Linked rules
- Conflicts with
lint/phpunit/prefer-this-call. You cannot enable both.