Skip to content

Commit

Permalink
Testdox: retain PHPUnit Errors/Warnings/Deprecations (#774)
Browse files Browse the repository at this point in the history
  • Loading branch information
Slamdunk authored Jun 22, 2023
1 parent 445902f commit eb9d6b0
Showing 1 changed file with 31 additions and 12 deletions.
43 changes: 31 additions & 12 deletions src/WrapperRunner/ResultPrinter.php
Original file line number Diff line number Diff line change
Expand Up @@ -196,27 +196,46 @@ public function printResults(TestResult $testResult, array $teamcityFiles, array

$this->printer->print(PHP_EOL . (new ResourceUsageFormatter())->resourceUsageSinceStartOfRequest() . PHP_EOL . PHP_EOL);

$defaultResultPrinter = new DefaultResultPrinter(
$this->printer,
true,
true,
true,
true,
true,
true,
$this->options->configuration->displayDetailsOnIncompleteTests(),
$this->options->configuration->displayDetailsOnSkippedTests(),
$this->options->configuration->displayDetailsOnTestsThatTriggerDeprecations(),
$this->options->configuration->displayDetailsOnTestsThatTriggerErrors(),
$this->options->configuration->displayDetailsOnTestsThatTriggerNotices(),
$this->options->configuration->displayDetailsOnTestsThatTriggerWarnings(),
false,
);

if ($this->options->configuration->outputIsTestDox()) {
$this->output->write($this->tailMultiple($testdoxFiles));
} else {
(new DefaultResultPrinter(

$defaultResultPrinter = new DefaultResultPrinter(
$this->printer,
true,
true,
true,
true,
true,
true,
$this->options->configuration->displayDetailsOnIncompleteTests(),
$this->options->configuration->displayDetailsOnSkippedTests(),
$this->options->configuration->displayDetailsOnTestsThatTriggerDeprecations(),
$this->options->configuration->displayDetailsOnTestsThatTriggerErrors(),
$this->options->configuration->displayDetailsOnTestsThatTriggerNotices(),
$this->options->configuration->displayDetailsOnTestsThatTriggerWarnings(),
false,
))->print($testResult);
false,
false,
false,
false,
false,
false,
false,
false,
false,
);
}

$defaultResultPrinter->print($testResult);

(new SummaryPrinter(
$this->printer,
$this->options->configuration->colors(),
Expand Down

0 comments on commit eb9d6b0

Please sign in to comment.