lint/phpunit/no-assert-contains-on-string
Not in any preset. In Rector’s rector-phpunit/composer-based set. Needs the phpunit extension. Safe fix.
What it does
Change assertContains()/assertNotContains() method to new string and iterable alternatives
Configuration
[lint.rules]
"phpunit/no-assert-contains-on-string" = "error"
To skip it in some files or lines, add an override or an ignore comment.
Replaces
SpecificAssertContains(rector-phpunit)