trait TestCompatibilityTrait

Same name in this branch
  1. 9 core/tests/Drupal/TestTools/PhpUnitCompatibility/PhpUnit8/TestCompatibilityTrait.php \Drupal\TestTools\PhpUnitCompatibility\PhpUnit8\TestCompatibilityTrait
Same name in other branches
  1. 8.9.x core/tests/Drupal/TestTools/PhpUnitCompatibility/PhpUnit6/TestCompatibilityTrait.php \Drupal\TestTools\PhpUnitCompatibility\PhpUnit6\TestCompatibilityTrait
  2. 8.9.x core/tests/Drupal/TestTools/PhpUnitCompatibility/PhpUnit7/TestCompatibilityTrait.php \Drupal\TestTools\PhpUnitCompatibility\PhpUnit7\TestCompatibilityTrait
  3. 10 core/tests/Drupal/TestTools/PhpUnitCompatibility/PhpUnit9/TestCompatibilityTrait.php \Drupal\TestTools\PhpUnitCompatibility\PhpUnit9\TestCompatibilityTrait
  4. 11.x core/tests/Drupal/TestTools/PhpUnitCompatibility/PhpUnit9/TestCompatibilityTrait.php \Drupal\TestTools\PhpUnitCompatibility\PhpUnit9\TestCompatibilityTrait
  5. 11.x core/tests/Drupal/TestTools/PhpUnitCompatibility/PhpUnit10/TestCompatibilityTrait.php \Drupal\TestTools\PhpUnitCompatibility\PhpUnit10\TestCompatibilityTrait

Drupal's forward compatibility layer with multiple versions of PHPUnit.

Hierarchy

  • trait \Drupal\TestTools\PhpUnitCompatibility\PhpUnit9\TestCompatibilityTrait uses \Prophecy\PhpUnit\ProphecyTrait

File

core/tests/Drupal/TestTools/PhpUnitCompatibility/PhpUnit9/TestCompatibilityTrait.php, line 16

Namespace

Drupal\TestTools\PhpUnitCompatibility\PhpUnit9
View source
trait TestCompatibilityTrait {
    use ProphecyTrait;

}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.