Skip to content

Commit c651a94

Browse files
Nyholmsebastianbergmann
authored andcommitted
Update warning when using expectExceptionMessageRegExp()
1 parent 2b74631 commit c651a94

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Framework/TestCase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1455,7 +1455,7 @@ protected function runTest()
14551455
}
14561456

14571457
if ($this->deprecatedExpectExceptionMessageRegExpUsed) {
1458-
$this->addWarning('expectExceptionMessageRegExp() is deprecated in PHPUnit 8 and will be removed in PHPUnit 9.');
1458+
$this->addWarning('expectExceptionMessageRegExp() is deprecated in PHPUnit 8 and will be removed in PHPUnit 9. Use expectExceptionMessageMatches() instead.');
14591459
}
14601460

14611461
return;

0 commit comments

Comments
 (0)