Use Symfony's simple-phpunit

Created on 12 March 2019, about 6 years ago
Updated 17 February 2024, about 1 year ago

Problem/Motivation

PHPUnit has a faster release cadence than Drupal and drops support for PHP versions quicker than we do. See https://phpunit.de/supported-versions.html. This leads to issues like:

We're also always playing catch up and have to do issues like #2950132: Support PHPUnit 7 optionally in Drupal 8, while keeping support for ^6.5 .

Proposed resolution

Symfony does not include phpunit in its composer.json. Instead it uses a custom PHPUnit runner called simple-phpunit that selects the correct PHPUnit version for the PHP version you are running on. It exists to:

Provides a modified version of PHPUnit that does not embed symfony/yaml nor prophecy to prevent any conflicts with these dependencies.

https://symfony.com/doc/current/components/phpunit_bridge.html

Remaining tasks

User interface changes

TBD

API changes

TDB

Data model changes

None

Release notes snippet

@todo

📌 Task
Status

Closed: won't fix

Version

11.0 🔥

Component
PHPUnit 

Last updated about 4 hours ago

Created by

🇬🇧United Kingdom alexpott 🇪🇺🌍

Live updates comments and jobs are added and updated live.
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.

  • 🇺🇸United States smustgrave

    Following up if this is still a valid task?

  • Status changed to Closed: won't fix about 1 year ago
  • 🇬🇧United Kingdom alexpott 🇪🇺🌍

    I still think we have problems with the PHPUnit tail wagging the Drupal dog and removing PHPUnit from the dependency chain would be great. There's always a tension about having dependencies on tools.

    That said I think closing this task is okay as no one is actively working on this.

Production build 0.71.5 2024