HtmlOutputPrinter.php

Same filename in this branch
  1. 8.9.x core/tests/Drupal/TestTools/PhpUnitCompatibility/PhpUnit6/HtmlOutputPrinter.php
  2. 8.9.x core/tests/Drupal/TestTools/PhpUnitCompatibility/PhpUnit7/HtmlOutputPrinter.php
Same filename and directory in other branches
  1. 9 core/tests/Drupal/Tests/Listeners/HtmlOutputPrinter.php
  2. 10 core/tests/Drupal/Tests/Listeners/HtmlOutputPrinter.php
  3. 11.x core/tests/Drupal/Tests/Listeners/HtmlOutputPrinter.php

Defines a class for providing html output results for functional tests.

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

View source
<?php


/**
 * @file
 * Defines a class for providing html output results for functional tests.
 *
 * 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() . "\\HtmlOutputPrinter", HtmlOutputPrinter::class);

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