lint/phpunit/prefer-create-stub
In the code-quality set. Safe fix. Runs when phpunit is installed.
What it does
Use createStub() instead of createMock() when no expectations are set.
Configuration
[lint.rules]
"phpunit/prefer-create-stub" = "error"
To skip it in some files or lines, add an override or an ignore comment.
Replaces
PropertyCreateMockToCreateStub(rector-phpunit)