diff --git a/src/Framework/TestCase.php b/src/Framework/TestCase.php index cd415e15b28..4f5353968e6 100644 --- a/src/Framework/TestCase.php +++ b/src/Framework/TestCase.php @@ -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;