8.x-1.x branch fails testing with PHPUnit 9 due to expectExceptionMessageRegExp()

Created on 23 February 2023, over 1 year ago
Updated 29 August 2023, 10 months ago

Problem/Motivation

Automated testing of the 8.x-1.x branch is currently broken for supported versions of core. They test with PHPUnit 9. Sadly, expectExceptionMessageRegExp() was silently dropped from PHPUnit without any deprecation notices (https://github.com/sebastianbergmann/phpunit/issues/4133). The 8.x-1.x branch calls this method in 1 Kernel test.

Steps to reproduce

Run the 8.x-1.x test suite against D9.5 core with PHPUnit 9.

Proposed resolution

Switch from expectExceptionMessageRegExp() to expectExceptionMessageMatches() , as was done in commit d265fcee69a.

Remaining tasks

User interface changes

API changes

Data model changes

πŸ“Œ Task
Status

Closed: outdated

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States dww

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024