Problem/Motivation

PHPUnit 13.2 deprecates TestCase::expectExceptionMessage() in favor of TestCase::expectExceptionMessageIs() (stricter) or TestCase::expectExceptionMessageIsOrContains() (equivalent to TestCase::expectExceptionMessage()).

See Improved API for exception message expectations

Proposed resolution

Replace additions that occurred recently.

Remaining tasks

User interface changes

Introduced terminology

API changes

Data model changes

Release notes snippet

Issue fork drupal-3635770

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

mondrake created an issue. See original summary.

mondrake’s picture

Version: 12.0.x-dev » main

mondrake’s picture

Status: Active » Needs review
dcam’s picture

Status: Needs review » Reviewed & tested by the community

All uses of the deprecated function are replaced with the stricter version, expectExceptionMessageIs(). I grepped Core for any additional instances of the function that may have crept in during the last two weeks. There were no additional instances. Note that the two instances in ForwardCompatibilityTrait are supposed to be there until we're ready to upgrade. It looks good to me.