[meta] Address PHPUnit 9 deprecations in Drupal 10 for forward-compatibility with PHPUnit 10

Created on 8 June 2021, about 4 years ago
Updated 24 January 2023, over 2 years ago

Problem/Motivation

PHPUnit 10 was originally planned for February 2021, but has been delayed. We are hoping to ship Drupal 10 with support for PHPUnit 10 and so we can start preparing for this now, even though it is not fully released yet, thanks to Symfony's PHPUnit bridge and #3174200: Use PHPUnit-bridge polyfills for forward compatibility layer which adds forward compatibility for PHPUnit 10 to existing tests.

Proposed resolution

  • Obviously, wait for PHPUnit 10 to be a thing
  • The biggest effort will then come, i.e. converting the deprecated listeners (that will be removed in PHPUnit 10 AFAWCS) to the new event system included in PHPUnit 10. This will have upstream impacts on Symfony's PHPUnit-bridge, too, because the deprecation reporting process that it (and from there, Drupal) implements is based on listeners. So we likely will have to see what Symfony startegy will be before outlining ours.

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

🌱 Plan
Status

Active

Version

10.0

Component
PHPUnit 

Last updated about 6 hours ago

Created by

🇬🇧United Kingdom longwave UK

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

Merge Requests

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