Skip to content

Commit 6ddb43d

Browse files
Merge branch '7.4' into 7.5
2 parents c1e82c0 + bac4fa5 commit 6ddb43d

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

tests/unit/Framework/AssertTest.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,20 @@ public function testAssertContainsEmptyStringInString(): void
113113
$this->assertContains('', 'test');
114114
}
115115

116+
public function testAssertStringContainsNonString(): void
117+
{
118+
$this->expectException(Exception::class);
119+
120+
$this->assertContains(null, '');
121+
}
122+
123+
public function testAssertStringNotContainsNonString(): void
124+
{
125+
$this->expectException(Exception::class);
126+
127+
$this->assertNotContains(null, '');
128+
}
129+
116130
public function testAssertArrayHasKeyThrowsExceptionForInvalidFirstArgument(): void
117131
{
118132
$this->expectException(Exception::class);

0 commit comments

Comments
 (0)