AfterSymfonyListener.php

Same filename in this branch
  1. 8.9.x core/tests/Drupal/TestTools/PhpUnitCompatibility/PhpUnit6/AfterSymfonyListener.php
  2. 8.9.x core/tests/Drupal/TestTools/PhpUnitCompatibility/PhpUnit7/AfterSymfonyListener.php

Listens to PHPUnit test runs.

In order to manage different method signatures between PHPUnit versions, we dynamically load a class dependent on the PHPUnit runner version.

Namespace

Drupal\Tests\Listeners

File

core/tests/Drupal/Tests/Listeners/AfterSymfonyListener.php

View source
<?php


/**
 * @file
 * Listens to PHPUnit test runs.
 *
 * In order to manage different method signatures between PHPUnit versions, we
 * dynamically load a class dependent on the PHPUnit runner version.
 */
namespace Drupal\Tests\Listeners;

use Drupal\TestTools\PhpUnitCompatibility\RunnerVersion;
class_alias("Drupal\\TestTools\\PhpUnitCompatibility\\PhpUnit" . RunnerVersion::getMajor() . "\\AfterSymfonyListener", AfterSymfonyListener::class);

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