Problem/Motivation

Spin off of #3523614: [CI] Collect and report deprecation statistics and details.

The DeprecationHandler class was implemented as a replacement of Symfony's PHPUnit-bridge component, and uses initialization logic that is now outdated by more recent PHPUnit developments.

Proposed resolution

In this issue, we will

  1. convert the DeprecationHandler class into a proper PHPUnit 'extension', using the bootstrap logic introduced in PHPUnit 10
  2. introduce proper extension parameters in the phpunit.xml to configure the extension, and a new environment variable that could override the xml configuration at runtime in CI pipelines
  3. make the legacy SYMFONY_DEPRECATION_HELPER variable redundant (still allowing its usage at least for now)

Remaining tasks

User interface changes

Introduced terminology

API changes

Data model changes

Release notes snippet

Issue fork drupal-3589108

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

Issue summary: View changes

mondrake’s picture

Assigned: mondrake » Unassigned
Status: Active » Needs review
Issue tags: -PHPUnit 12
mondrake’s picture

Issue tags: -run-tests.sh
mondrake’s picture

Title: [CI] Refactor DeprecationHandler in a standard PHPUnit extension » [CI] Refactor DeprecationHandler to a standard PHPUnit extension
mondrake’s picture

Title: [CI] Refactor DeprecationHandler to a standard PHPUnit extension » Refactor DeprecationHandler to a standard PHPUnit extension
needs-review-queue-bot’s picture

Status: Needs review » Needs work
StatusFileSize
new1.19 KB

The Needs Review Queue Bot tested this issue. It fails the Drupal core commit checks. Therefore, this issue status is now "Needs work".

This does not mean that the patch necessarily needs to be re-rolled or the MR rebased. Read the Issue Summary, the issue tags and the latest discussion here to determine what needs to be done.

Consult the Drupal Contributor Guide to find step-by-step guides for working with issues.

mondrake’s picture

Status: Needs work » Needs review

rebased