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

Commit eb27243

Browse files
authored
Merge pull request #80 from Codeception/9.0-wrap-deprecated-methods
Create wrapper for methods deprecated in PHPUnit 9
2 parents cf5954c + 20a1a03 commit eb27243

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

src/TestCase.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,19 @@ public function expectExceptionMessageRegExp(string $regularExpression): void
3838
{
3939
$this->expectExceptionMessageMatches($regularExpression);
4040
}
41+
42+
public static function assertRegExp(string $pattern, string $string, string $message = ''): void
43+
{
44+
parent::assertMatchesRegularExpression($pattern, $string, $message);
45+
}
46+
47+
public static function assertNotRegExp(string $pattern, string $string, string $message = ''): void
48+
{
49+
parent::assertDoesNotMatchRegularExpression($pattern, $string, $message);
50+
}
51+
52+
public static function assertFileNotExists(string $filename, string $message = ''): void
53+
{
54+
parent::assertFileDoesNotExist($filename, $message);
55+
}
4156
}

0 commit comments

Comments
 (0)