Refactors

This commit is contained in:
luke
2021-08-01 15:42:52 +01:00
parent 8861dd2401
commit b5959aa3fa
2 changed files with 4 additions and 11 deletions

View File

@ -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.

View File

@ -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();
}