You are here

HtmlOutputPrinter.php in Drupal 8

File

core/tests/Drupal/TestTools/PhpUnitCompatibility/PhpUnit7/HtmlOutputPrinter.php
View source
<?php

namespace Drupal\TestTools\PhpUnitCompatibility\PhpUnit7;

use Drupal\Tests\Listeners\HtmlOutputPrinterTrait;
use PHPUnit\Framework\TestResult;
use PHPUnit\TextUI\ResultPrinter;

/**
 * Defines a class for providing html output results for functional tests.
 *
 * @internal
 */
class HtmlOutputPrinter extends ResultPrinter {
  use HtmlOutputPrinterTrait;

  /**
   * {@inheritdoc}
   */
  public function printResult(TestResult $result) : void {
    parent::printResult($result);
    $this
      ->printHtmlOutput();
  }

}

Classes

Namesort descending Description
HtmlOutputPrinter Defines a class for providing html output results for functional tests.