lint/phpunit/no-value-object-mock
In the code-quality set. Safe fix. Runs when phpunit is installed.
What it does
Use a real instance instead of a mock for entities and simple value objects in tests.
Configuration
[lint.rules]
"phpunit/no-value-object-mock" = "error"
To skip it in some files or lines, add an override or an ignore comment.
Replaces
DirectInstanceOverMockArg(rector-phpunit)