lint/pest/prefer-to-have-same-size
In the coding-style set. Unsafe fix: it can change behaviour. Runs when pest is installed.
What it does
Converts expect(count($a))->toBe(count($b)) to expect($a)->toHaveSameSize($b)
Configuration
[lint.rules]
"pest/prefer-to-have-same-size" = "error"
To skip it in some files or lines, add an override or an ignore comment.
Replaces
UseToHaveSameSize(pest-plugin-rector)