SYMFONY_DEPRECATIONS_HELPER in phpunit.xml.dist is no longer relevant

Created on 9 September 2024, 11 months ago
Updated 11 September 2024, 11 months ago

Problem/Motivation

Symfony PHPUnit-bridge was removed as a dev dependency in ๐Ÿ“Œ Upgrade PHPUnit to 10, drop Symfony PHPUnit-bridge dependency Fixed , but we still have stuff about SYMFONY_DEPRECATIONS_HELPER in core/phpunit.xml.dist.

This should be removed, as it's no longer relevant and confusing.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

Introduced terminology

API changes

Data model changes

Release notes snippet

๐Ÿ› Bug report
Status

Active

Version

11.0 ๐Ÿ”ฅ

Component
PHPUnitย  โ†’

Last updated 8 days ago

Created by

๐Ÿ‡ฌ๐Ÿ‡งUnited Kingdom joachim

Live updates comments and jobs are added and updated live.
  • Novice

    It would make a good project for someone who is new to the Drupal contribution process. It's preferred over Newbie.

Sign in to follow issues

Merge Requests

Comments & Activities

  • Issue created by @joachim
  • First commit to issue fork.
  • Pipeline finished with Success
    11 months ago
    Total: 531s
    #280332
  • Status changed to Needs review 11 months ago
  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia ankitv18

    Hi @joachim,
    I've created the MR ~~ not sure if this this is only changes required here.
    Please do comment if anything else is needed

  • ๐Ÿ‡บ๐Ÿ‡ธUnited States smustgrave

    @ankitv18 again this was opened and tagged for novice, new users, 2 days ago. Know this has been brought up before. Going to see if someone can reach out.

  • Status changed to RTBC 11 months ago
  • ๐Ÿ‡ฌ๐Ÿ‡งUnited Kingdom joachim

    MR looks good.

    NB for committer -- should not be backported to 10! :)

  • Status changed to Needs work 11 months ago
  • ๐Ÿ‡ฎ๐Ÿ‡นItaly mondrake ๐Ÿ‡ฎ๐Ÿ‡น

    Well,

    This should be removed, as it's no longer relevant and confusing.

    is not correct, in fact. Yes it's confusing, but also it's still relevant, it's parsed for configuration by the code that replaced the Symfony bridge with our own. See Drupal\TestTools\Extension\DeprecationBridge\DeprecationHandler, and calls in run-tests.sh.

    This was left in not to break CI jobs that may have been setting the env variable independently.

    Probably it should be replaced with something more meaningful (a full PHPUnit extension with parameters, maybe?), but we should rather go for a deprecation dance here, not plain removal.

  • ๐Ÿ‡ฌ๐Ÿ‡งUnited Kingdom joachim

    > but also it's still relevant, it's parsed for configuration by the code that replaced the Symfony bridge with our own. See Drupal\TestTools\Extension\DeprecationBridge\DeprecationHandler, and calls in run-tests.sh.

    Ok, so in that case the comments need to be updated.

    What should it say now?

  • ๐Ÿ‡จ๐Ÿ‡ฆCanada Charlie ChX Negyesi ๐ŸCanada

    Maybe SYMFONY_DEPRECATIONS_HELPER is parsed but it does absolutely nothing now and ๐Ÿ“Œ Upgrade PHPUnit to 10, drop Symfony PHPUnit-bridge dependency Fixed added displayDetailsOnTestsThatTriggerDeprecations="true" which is the only thing that now does something and of course it went in undocumented because there was no phpcs rule to demand documentation and heaven forbid documentation gets written which helps developers.

Production build 0.71.5 2024