[meta] Several expect*() methods have been deprecated in PHPUnit 9.6

Created on 20 November 2022, about 2 years ago
Updated 9 April 2024, 10 months ago

Problem/Motivation

Several expect*() methods will be deprecated in PHPUnit 9.6

  • expectDeprecation(), expectDeprecationMessage(), and expectDeprecationMessageMatches()
  • expectError(), expectErrorMessage(), and expectErrorMessageMatches()
  • expectNotice(), expectNoticeMessage(), and expectNoticeMessageMatches()
  • expectWarning(), expectWarningMessage(), and expectWarningMessageMatches()

In Drupal, expectDeprecation* are actually superceded by Symfony PHPUnit-Bridge.

See https://github.com/sebastianbergmann/phpunit/issues/5062.

Steps to reproduce

Proposed resolution

?

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

📌 Task
Status

Closed: duplicate

Version

11.0 🔥

Component
PHPUnit 

Last updated about 2 hours ago

Created by

🇮🇹Italy mondrake 🇮🇹

Live updates comments and jobs are added and updated live.
  • Needs change record

    A change record needs to be drafted before an issue is committed. Note: Change records used to be called change notifications.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024