Change record status: 
Project: 
Introduced in branch: 
10.3.x
Introduced in version: 
10.3.0
Description: 

@requires module x is not a supported syntax in PHPUnit 10, and its parser no longer processes it. In the past, Drupal used this annotation to ensure a module was available in kernel tests:

  * @requires module mymodule

This has not been working since PHPUnit 7 was adopted. That made TestCase::checkRequirements a private method of the base class, making Drupal\Tests\TestRequirementsTrait::checkRequirements never be called again.

The annotation and Drupal\Tests\TestRequirementsTrait::checkRequirements are now deprecated for removal in Drupal 11.

Impacts: 
Module developers