HtmlOutputPrinter.php in Drupal 9
File
core/tests/Drupal/Tests/Listeners/HtmlOutputPrinter.php
View source
<?php
namespace Drupal\Tests\Listeners;
use Drupal\TestTools\PhpUnitCompatibility\RunnerVersion;
use PHPUnit\Framework\TestResult;
if (!class_exists(ResultPrinterBase::class, FALSE)) {
if (RunnerVersion::getMajor() < 9) {
class_alias('PHPUnit\\TextUI\\ResultPrinter', ResultPrinterBase::class);
}
else {
class_alias('PHPUnit\\TextUI\\DefaultResultPrinter', ResultPrinterBase::class);
}
}
class HtmlOutputPrinter extends ResultPrinterBase {
use HtmlOutputPrinterTrait;
public function printResult(TestResult $result) : void {
parent::printResult($result);
$this
->printHtmlOutput();
}
}
Classes
Name |
Description |
HtmlOutputPrinter |
Defines a class for providing html output results for functional tests. |