You are here

class HtmlOutputPrinter in Drupal 8

Same name in this branch
  1. 8 core/tests/Drupal/TestTools/PhpUnitCompatibility/PhpUnit7/HtmlOutputPrinter.php \Drupal\TestTools\PhpUnitCompatibility\PhpUnit7\HtmlOutputPrinter
  2. 8 core/tests/Drupal/TestTools/PhpUnitCompatibility/PhpUnit6/HtmlOutputPrinter.php \Drupal\TestTools\PhpUnitCompatibility\PhpUnit6\HtmlOutputPrinter

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

@internal

Hierarchy

Expanded class hierarchy of HtmlOutputPrinter

File

core/tests/Drupal/TestTools/PhpUnitCompatibility/PhpUnit6/HtmlOutputPrinter.php, line 14

Namespace

Drupal\TestTools\PhpUnitCompatibility\PhpUnit6
View source
class HtmlOutputPrinter extends ResultPrinter {
  use HtmlOutputPrinterTrait;

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

}

Members

Namesort descending Modifiers Type Description Overrides
HtmlOutputPrinter::printResult public function
HtmlOutputPrinterTrait::$browserOutputFile protected property File to write html links to.
HtmlOutputPrinterTrait::printHtmlOutput protected function Prints the list of HTML output generated during the test.
HtmlOutputPrinterTrait::setUpHtmlOutput protected function Creates the file to list the HTML output created during the test.
HtmlOutputPrinterTrait::simpletestUiWrite public function Prints HTML output links for the Simpletest UI.
HtmlOutputPrinterTrait::__construct public function