You are here

trait PhpUnitCompatibilityTrait in Drupal 9

Same name and namespace in other branches
  1. 8 core/tests/Drupal/Tests/PhpunitCompatibilityTrait.php \Drupal\Tests\PhpunitCompatibilityTrait

Makes Drupal's test API forward compatible with multiple versions of PHPUnit.

Hierarchy

8 files declare their use of PhpUnitCompatibilityTrait
AnnotationBridgeDecoratorTest.php in core/tests/Drupal/Tests/Component/Annotation/Plugin/Discovery/AnnotationBridgeDecoratorTest.php
BuildTestBase.php in core/tests/Drupal/BuildTests/Framework/BuildTestBase.php
ContainerTest.php in core/tests/Drupal/Tests/Component/DependencyInjection/ContainerTest.php
Contains \Drupal\Tests\Component\DependencyInjection\ContainerTest.
KernelTestBase.php in core/tests/Drupal/KernelTests/KernelTestBase.php
OptimizedPhpArrayDumperTest.php in core/tests/Drupal/Tests/Component/DependencyInjection/Dumper/OptimizedPhpArrayDumperTest.php
Contains \Drupal\Tests\Component\DependencyInjection\Dumper\OptimizedPhpArrayDumperTest.

... See full list

File

core/tests/Drupal/Tests/PhpUnitCompatibilityTrait.php, line 17

Namespace

Drupal\Tests
View source
trait PhpUnitCompatibilityTrait {
  use PhpUnitVersionDependentTestCompatibilityTrait;

}

Members