SimpletestUiPrinter.php

Same filename in this branch
  1. 8.9.x core/tests/Drupal/TestTools/PhpUnitCompatibility/PhpUnit6/SimpletestUiPrinter.php
  2. 8.9.x core/tests/Drupal/TestTools/PhpUnitCompatibility/PhpUnit7/SimpletestUiPrinter.php
Same filename in other branches
  1. 9 core/tests/Drupal/Tests/Listeners/SimpletestUiPrinter.php

Defines a class for providing html output links in the Simpletest UI.

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/SimpletestUiPrinter.php

View source
<?php


/**
 * @file
 * Defines a class for providing html output links in the Simpletest UI.
 *
 * 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() . "\\SimpletestUiPrinter", SimpletestUiPrinter::class);

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