function HtmlOutputPrinterTrait::printHtmlOutput
Same name in other branches
- 9 core/tests/Drupal/Tests/Listeners/HtmlOutputPrinterTrait.php \Drupal\Tests\Listeners\HtmlOutputPrinterTrait::printHtmlOutput()
- 8.9.x core/tests/Drupal/Tests/Listeners/HtmlOutputPrinterTrait.php \Drupal\Tests\Listeners\HtmlOutputPrinterTrait::printHtmlOutput()
- 11.x core/tests/Drupal/Tests/Listeners/HtmlOutputPrinterTrait.php \Drupal\Tests\Listeners\HtmlOutputPrinterTrait::printHtmlOutput()
Prints the list of HTML output generated during the test.
1 call to HtmlOutputPrinterTrait::printHtmlOutput()
- HtmlOutputPrinter::printResult in core/
tests/ Drupal/ Tests/ Listeners/ HtmlOutputPrinter.php
File
-
core/
tests/ Drupal/ Tests/ Listeners/ HtmlOutputPrinterTrait.php, line 70
Class
- HtmlOutputPrinterTrait
- Defines a class for providing html output results for functional tests.
Namespace
Drupal\Tests\ListenersCode
protected function printHtmlOutput() {
if ($this->browserOutputFile) {
$contents = file_get_contents($this->browserOutputFile);
if ($contents) {
$this->writeNewLine();
$this->writeWithColor('bg-yellow, fg-black', 'HTML output was generated');
$this->write($contents);
}
// No need to keep the file around any more.
unlink($this->browserOutputFile);
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.