HtmlOutputPrinter.php

Same filename in other branches
  1. 9 core/tests/Drupal/Tests/Listeners/HtmlOutputPrinter.php
  2. 8.9.x core/tests/Drupal/TestTools/PhpUnitCompatibility/PhpUnit6/HtmlOutputPrinter.php
  3. 8.9.x core/tests/Drupal/TestTools/PhpUnitCompatibility/PhpUnit7/HtmlOutputPrinter.php
  4. 8.9.x core/tests/Drupal/Tests/Listeners/HtmlOutputPrinter.php
  5. 10 core/tests/Drupal/Tests/Listeners/HtmlOutputPrinter.php

Namespace

Drupal\Tests\Listeners

File

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

View source
<?php

declare (strict_types=1);
namespace Drupal\Tests\Listeners;

use PHPUnit\Framework\TestResult;
use PHPUnit\TextUI\DefaultResultPrinter;

/**
 * Defines a class for providing html output results for functional tests.
 *
 * @internal
 */
class HtmlOutputPrinter extends DefaultResultPrinter {
    use HtmlOutputPrinterTrait;
    
    /**
     * {@inheritdoc}
     */
    public function printResult(TestResult $result) : void {
        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.