HtmlOutputPrinter.php

Same filename in this branch
  1. 8.9.x core/tests/Drupal/TestTools/PhpUnitCompatibility/PhpUnit7/HtmlOutputPrinter.php
  2. 8.9.x core/tests/Drupal/Tests/Listeners/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

Namespace

Drupal\TestTools\PhpUnitCompatibility\PhpUnit6

File

core/tests/Drupal/TestTools/PhpUnitCompatibility/PhpUnit6/HtmlOutputPrinter.php

View source
<?php

namespace Drupal\TestTools\PhpUnitCompatibility\PhpUnit6;

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) {
        parent::printResult($result);
        $this->printHtmlOutput();
    }

}

Classes

Title Deprecated Summary
HtmlOutputPrinter Defines a class for providing html output results for functional tests.

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