-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Closed
Labels
type/enhancementA new idea that should be implementedA new idea that should be implemented
Milestone
Description
currently, one can do both with a single assertion:
$this->assertContains('b', ['a', 'b', 'c']);
$this->assertContains('b', 'abc');
which is confusing if someone use it like the following, and for that error prone due to accidental lack of types control
$this->assertContains('b', $haystack);
what about splitting the responsibility of that assertion, to have one for strings and one for iterables ?
epdenouden and TomasVotruba
Metadata
Metadata
Assignees
Labels
type/enhancementA new idea that should be implementedA new idea that should be implemented