/**
  * TestResultsHtmlTables constructor.
  * @param TestInfo $testInfo Test information
  * @param TestResults $testResults The results of the test
  * @param bool $testComplete True if the test is complete, false otherwise
  * @param string|null $median_metric The metric to use to determine the median. (load time by default)
  * @param string|null $tcpDumpViewSettings The settings for viewing a TCP dump (URL or null)
  */
 public function __construct($testInfo, $testResults, $testComplete, $median_metric, $tcpDumpViewSettings)
 {
     $this->testInfo = $testInfo;
     $this->testResults = $testResults;
     $this->testComplete = $testComplete;
     $this->breakdown = null;
     $this->hasVideo = $this->testInfo->hasVideo();
     $this->hasScreenshots = $this->testInfo->hasScreenshots();
     $this->firstViewMedianRun = $this->testResults->getMedianRunNumber($median_metric, false);
     $this->tcpDumpViewSettings = $tcpDumpViewSettings;
     $this->isMultistep = $this->testInfo->getSteps() > 1;
 }