diff --git a/src/Actions/AddsDefaults.php b/src/Actions/AddsDefaults.php index f16b8879..9a177a46 100644 --- a/src/Actions/AddsDefaults.php +++ b/src/Actions/AddsDefaults.php @@ -30,7 +30,7 @@ final class AddsDefaults } if ($arguments[self::PRINTER] === \PHPUnit\Util\Log\TeamCity::class) { - $arguments[self::PRINTER] = new TeamCity(null, $arguments['verbose'] ?? false, $arguments['colors'] ?? DefaultResultPrinter::COLOR_ALWAYS); + $arguments[self::PRINTER] = new TeamCity($arguments['verbose'] ?? false, $arguments['colors'] ?? DefaultResultPrinter::COLOR_ALWAYS); } // Load our junit logger instead. diff --git a/src/Logging/TeamCity.php b/src/Logging/TeamCity.php index 58c329e1..0305c2ec 100644 --- a/src/Logging/TeamCity.php +++ b/src/Logging/TeamCity.php @@ -42,17 +42,10 @@ final class TeamCity extends DefaultResultPrinter /** * @param resource|string|null $out */ - public function __construct($out, bool $verbose, string $colors) + public function __construct(bool $verbose, string $colors) { - parent::__construct($out, $verbose, $colors, false, 80, false); - $this->phpunitTeamCity = new \PHPUnit\Util\Log\TeamCity( - $out, - $verbose, - $colors, - false, - 80, - false - ); + parent::__construct(null, $verbose, $colors); + $this->phpunitTeamCity = new \PHPUnit\Util\Log\TeamCity(null, $verbose, $colors); $this->logo(); }