protected function HtmlOutputPrinterTrait::printHtmlOutput in Drupal 9
Same name and namespace in other branches
- 8 core/tests/Drupal/Tests/Listeners/HtmlOutputPrinterTrait.php \Drupal\Tests\Listeners\HtmlOutputPrinterTrait::printHtmlOutput()
- 10 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);
}
}