Skip to content

Commit

Permalink
PHPUnit 9.0: Replace references to expectExceptionMessageRegExp() w…
Browse files Browse the repository at this point in the history
…ith `expectExceptionMessageMatches()`

Based on the changelog of PHPUnit 9.0, the `expectExceptionMessageRegExp()` method has been removed and `expectExceptionMessageMatches()` should be used instead.

Refs:
* https://github.com/sebastianbergmann/phpunit/blob/9.0.1/ChangeLog-9.0.md
* sebastianbergmann/phpunit#3957
  • Loading branch information
jrfnl authored and sebastianbergmann committed Feb 20, 2020
1 parent bdc5c24 commit 3877334
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/writing-tests-for-phpunit.rst
Original file line number Diff line number Diff line change
Expand Up @@ -651,7 +651,7 @@ whether an exception is thrown by the code under test.
In addition to the ``expectException()`` method the
``expectExceptionCode()``,
``expectExceptionMessage()``, and
``expectExceptionMessageRegExp()`` methods exist to set up
``expectExceptionMessageMatches()`` methods exist to set up
expectations for exceptions raised by the code under test.

.. admonition:: Note
Expand Down

0 comments on commit 3877334

Please sign in to comment.