Skip to content

Commit

Permalink
Update warning when using expectExceptionMessageRegExp()
Browse files Browse the repository at this point in the history
  • Loading branch information
Nyholm authored and sebastianbergmann committed Sep 13, 2020
1 parent 2b74631 commit c651a94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Framework/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -1455,7 +1455,7 @@ protected function runTest()
}

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

return;
Expand Down

0 comments on commit c651a94

Please sign in to comment.