Skip to content

Commit 6d00002

Browse files
committed
[PHPUnit 9] Rename assertRegExp/assertNotRegExp to assertMatchesRegularExpression/assertDoesNotMatchRegularExpression
1 parent b66ce7e commit 6d00002

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

config/sets/phpunit90.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,20 @@
2525
'expectExceptionMessageRegExp',
2626
'expectExceptionMessageMatches'
2727
),
28+
29+
30+
// @see https://github.com/sebastianbergmann/phpunit/issues/4086
31+
new MethodCallRename(
32+
'PHPUnit\Framework\TestCase',
33+
'assertRegExp',
34+
'assertMatchesRegularExpression'
35+
),
36+
37+
// @see https://github.com/sebastianbergmann/phpunit/issues/4089
38+
new MethodCallRename(
39+
'PHPUnit\Framework\TestCase',
40+
'assertNotRegExp',
41+
'assertDoesNotMatchRegularExpression'
42+
),
2843
]);
2944
};

0 commit comments

Comments
 (0)