Skip to content
This repository was archived by the owner on Mar 12, 2025. It is now read-only.

Commit 35bd9b4

Browse files
committed
assertString(Not)ContainsString for PHPUnit 6
1 parent 0ea5193 commit 35bd9b4

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/TestCase.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,14 @@ public static function tearDownAfterClass()
3333
static::_tearDownAfterClass();
3434
}
3535
}
36+
37+
public static function assertStringContainsString($needle, $haystack, $message = '')
38+
{
39+
\Codeception\PHPUnit\TestCase::assertContains($needle, $haystack, $message = '');
40+
}
41+
42+
public static function assertStringNotContainsString($needle, $haystack, $message = '')
43+
{
44+
\Codeception\PHPUnit\TestCase::assertNotContains($needle, $haystack, $message = '');
45+
}
3646
}

0 commit comments

Comments
 (0)