We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c1e82c0 + bac4fa5 commit 6ddb43dCopy full SHA for 6ddb43d
tests/unit/Framework/AssertTest.php
@@ -113,6 +113,20 @@ public function testAssertContainsEmptyStringInString(): void
113
$this->assertContains('', 'test');
114
}
115
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
126
127
+ $this->assertNotContains(null, '');
128
129
130
public function testAssertArrayHasKeyThrowsExceptionForInvalidFirstArgument(): void
131
{
132
$this->expectException(Exception::class);
0 commit comments