7c1f45e38f905c718486c152dd6c0a0127add0be
[yaffs-website] / web / core / tests / Drupal / Tests / Listeners / Legacy / HtmlOutputPrinter.php
1 <?php
2
3 namespace Drupal\Tests\Listeners\Legacy;
4
5 use Drupal\Tests\Listeners\HtmlOutputPrinterTrait;
6
7 /**
8  * Defines a class for providing html output results for functional tests.
9  *
10  * @internal
11  */
12 class HtmlOutputPrinter extends \PHPUnit_TextUI_ResultPrinter {
13   use HtmlOutputPrinterTrait;
14
15   /**
16    * {@inheritdoc}
17    */
18   public function __construct($out, $verbose, $colors, $debug, $numberOfColumns) {
19     parent::__construct($out, $verbose, $colors, $debug, $numberOfColumns);
20
21     $this->setUpHtmlOutput();
22   }
23
24   /**
25    * {@inheritdoc}
26    */
27   public function printResult(\PHPUnit_Framework_TestResult $result) {
28     parent::printResult($result);
29
30     $this->printHtmlOutput();
31   }
32
33 }