Skip to content

Commit 78c5504

Browse files
committed
2.0 Fix compatibility with PHPUnit 8
1 parent df9c834 commit 78c5504

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/Codeception/Util/Shared/Asserts.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ protected function assertNot($arguments)
4040
*/
4141
protected function assertFileNotExists(string $filename, string $message = '')
4242
{
43-
TestCase::assertFileDoesNotExist($filename, $message);
43+
TestCase::assertFileNotExists($filename, $message);
4444
}
4545

4646
/**
@@ -80,15 +80,15 @@ protected function assertLessOrEquals($expected, $actual, string $message = '')
8080
*/
8181
protected function assertNotRegExp(string $pattern, string $string, string $message = '')
8282
{
83-
TestCase::assertDoesNotMatchRegularExpression($pattern, $string, $message);
83+
TestCase::assertNotRegExp($pattern, $string, $message);
8484
}
8585

8686
/**
8787
* Asserts that a string matches a given regular expression.
8888
*/
8989
protected function assertRegExp(string $pattern, string $string, string $message = '')
9090
{
91-
TestCase::assertMatchesRegularExpression($pattern, $string, $message);
91+
TestCase::assertRegExp($pattern, $string, $message);
9292
}
9393

9494
/**

src/Codeception/Util/Shared/InheritedAsserts.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ protected function assertDirectoryIsWritable(string $directory, string $message
164164
*/
165165
protected function assertDoesNotMatchRegularExpression(string $pattern, string $string, string $message = '')
166166
{
167-
TestCase::assertDoesNotMatchRegularExpression($pattern, $string, $message);
167+
TestCase::assertNotRegExp($pattern, $string, $message);
168168
}
169169

170170
/**
@@ -236,7 +236,7 @@ protected function assertFalse($condition, string $message = '')
236236
*/
237237
protected function assertFileDoesNotExist(string $filename, string $message = '')
238238
{
239-
TestCase::assertFileDoesNotExist($filename, $message);
239+
TestCase::assertFileNotExists($filename, $message);
240240
}
241241

242242
/**
@@ -734,7 +734,7 @@ protected function assertLessThanOrEqual($expected, $actual, string $message = '
734734
*/
735735
protected function assertMatchesRegularExpression(string $pattern, string $string, string $message = '')
736736
{
737-
TestCase::assertMatchesRegularExpression($pattern, $string, $message);
737+
TestCase::assertRegExp($pattern, $string, $message);
738738
}
739739

740740
/**

0 commit comments

Comments
 (0)