class HtmlOutputPrinter

Same name and namespace in other branches
  1. 8.9.x core/tests/Drupal/TestTools/PhpUnitCompatibility/PhpUnit6/HtmlOutputPrinter.php \Drupal\TestTools\PhpUnitCompatibility\PhpUnit6\HtmlOutputPrinter
  2. 8.9.x core/tests/Drupal/TestTools/PhpUnitCompatibility/PhpUnit7/HtmlOutputPrinter.php \Drupal\TestTools\PhpUnitCompatibility\PhpUnit7\HtmlOutputPrinter
  3. 10 core/tests/Drupal/Tests/Listeners/HtmlOutputPrinter.php \Drupal\Tests\Listeners\HtmlOutputPrinter
  4. 11.x core/tests/Drupal/Tests/Listeners/HtmlOutputPrinter.php \Drupal\Tests\Listeners\HtmlOutputPrinter

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

@internal

Hierarchy

Expanded class hierarchy of HtmlOutputPrinter

File

core/tests/Drupal/Tests/Listeners/HtmlOutputPrinter.php, line 25

Namespace

Drupal\Tests\Listeners
View source
class HtmlOutputPrinter extends ResultPrinterBase {
    use HtmlOutputPrinterTrait;
    
    /**
     * {@inheritdoc}
     */
    public function printResult(TestResult $result) : void {
        parent::printResult($result);
        $this->printHtmlOutput();
    }

}

Members

Title Sort descending Modifiers Object type Summary
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

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