lint/phpunit/add-data-provider-allow-mock-objects
Not in any set. Safe fix. Runs when phpunit is installed.
What it does
Add #[AllowMockObjectsWithoutExpectations] attribute to PHPUnit test classes that have methods with data providers and mock objects without expectations
Configuration
[lint.rules]
"phpunit/add-data-provider-allow-mock-objects" = "error"
To skip it in some files or lines, add an override or an ignore comment.
Replaces
AllowMockObjectsForDataProvider(rector-phpunit)