Skip to content

Commit 4d79a3c

Browse files
authored
Merge pull request #1 from W0rma/add-assert-string-ends-with
Add assertStringEndsWith and assertStringEndsNotWith
2 parents 2454097 + 05cdcf6 commit 4d79a3c

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/Codeception/Util/Shared/Asserts.php

+10
Original file line numberDiff line numberDiff line change
@@ -464,6 +464,16 @@ protected function assertStringNotContainsStringIgnoringCase($needle, $haystack,
464464
\Codeception\PHPUnit\TestCase::assertStringNotContainsStringIgnoringCase($needle, $haystack, $message);
465465
}
466466

467+
protected function assertStringEndsWith($suffix, $string, $message = '')
468+
{
469+
\Codeception\PHPUnit\TestCase::assertStringEndsWith($suffix, $string, $message);
470+
}
471+
472+
protected function assertStringEndsNotWith($suffix, $string, $message = '')
473+
{
474+
\Codeception\PHPUnit\TestCase::assertStringEndsNotWith($suffix, $string, $message);
475+
}
476+
467477
protected function assertIsArray($actual, $message = '')
468478
{
469479
\Codeception\PHPUnit\TestCase::assertIsArray($actual, $message);

0 commit comments

Comments
 (0)