Test::parseTestMethodAnnotations is removed in PHPUnit 10

Created on 22 April 2023, about 2 years ago
Updated 2 March 2024, about 1 year ago

Problem/Motivation

Test::parseTestMethodAnnotations is removed from PHPUnit 10. Needs finding an alternative for

Drupal\Tests\migrate\Kernel\MigrateSourceTestBase

that rely on it.

Done

Proposed resolution

Introduce a light ::getTestClassCovers() shim in the PhpUnit TestCompatibilityTrait that abstracts fetching the @cover annotations via Test::parseTestMethodAnnotations() in PHPUnit 9; when shifting to PHPUnit 10 change the implementation to the new $this->valueObjectForEvents()->metadata()->isCovers() methods (see prototype in https://git.drupalcode.org/project/drupal/-/blame/904e0e97f562e88b06dcf0...)

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

๐Ÿ“Œ Task
Status

Fixed

Version

11.0 ๐Ÿ”ฅ

Component
PHPUnitย  โ†’

Last updated about 7 hours ago

Created by

๐Ÿ‡ฎ๐Ÿ‡นItaly mondrake ๐Ÿ‡ฎ๐Ÿ‡น

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