mirror of
https://github.com/pestphp/pest.git
synced 2026-03-11 18:27:23 +01:00
Refactors
This commit is contained in:
@ -30,7 +30,7 @@ final class AddsDefaults
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ($arguments[self::PRINTER] === \PHPUnit\Util\Log\TeamCity::class) {
|
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.
|
// Load our junit logger instead.
|
||||||
|
|||||||
@ -42,17 +42,10 @@ final class TeamCity extends DefaultResultPrinter
|
|||||||
/**
|
/**
|
||||||
* @param resource|string|null $out
|
* @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);
|
parent::__construct(null, $verbose, $colors);
|
||||||
$this->phpunitTeamCity = new \PHPUnit\Util\Log\TeamCity(
|
$this->phpunitTeamCity = new \PHPUnit\Util\Log\TeamCity(null, $verbose, $colors);
|
||||||
$out,
|
|
||||||
$verbose,
|
|
||||||
$colors,
|
|
||||||
false,
|
|
||||||
80,
|
|
||||||
false
|
|
||||||
);
|
|
||||||
|
|
||||||
$this->logo();
|
$this->logo();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user