Skip to content

Commit

Permalink
Output: get numbers of columns from PHPUnit (#773)
Browse files Browse the repository at this point in the history
  • Loading branch information
Slamdunk authored Jun 22, 2023
1 parent 14ab034 commit 445902f
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/WrapperRunner/ResultPrinter.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@ final class ResultPrinter
{
public readonly Printer $printer;

private int $numTestsWidth = 0;
private int $maxColumn = 0;
private int $totalCases = 0;
private int $column = 0;
private int $casesProcessed = 0;
private int $numberOfColumns = 80;
private int $numTestsWidth = 0;
private int $maxColumn = 0;
private int $totalCases = 0;
private int $column = 0;
private int $casesProcessed = 0;
private int $numberOfColumns;
/** @var resource|null */
private $teamcityLogFileHandle;
/** @var array<non-empty-string, int> */
Expand All @@ -71,6 +71,8 @@ public function flush(): void
}
};

$this->numberOfColumns = $this->options->configuration->columns();

if (! $this->options->configuration->hasLogfileTeamcity()) {
return;
}
Expand Down

0 comments on commit 445902f

Please sign in to comment.