Skip to content

Commit

Permalink
Consistently use TestRunner::write() instead of Printer::write()
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbergmann committed Mar 5, 2022
1 parent e93feea commit 3f2d882
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions src/TextUI/TestRunner.php
Expand Up @@ -318,9 +318,7 @@ public function doRun(Test $suite, array $arguments = [], array $warnings = [],
$this->printer->setShowProgressAnimation(!$arguments['noInteraction']);
}

$this->printer->write(
Version::getVersionString() . "\n"
);
$this->write(Version::getVersionString() . "\n");

if ($arguments['verbose']) {
$this->writeMessage('Runtime', $this->runtime->getNameWithVersionAndCodeCoverageDriver());
Expand Down Expand Up @@ -605,7 +603,7 @@ public function doRun(Test $suite, array $arguments = [], array $warnings = [],
exit(self::SUCCESS_EXIT);
}

$this->printer->write("\n");
$this->write("\n");

if (isset($codeCoverage)) {
$result->setCodeCoverage($codeCoverage);
Expand Down Expand Up @@ -1357,7 +1355,7 @@ private function createPrinter(string $class, array $arguments): Printer

private function codeCoverageGenerationStart(string $format): void
{
$this->printer->write(
$this->write(
sprintf(
"\nGenerating code coverage report in %s format ... ",
$format
Expand All @@ -1369,7 +1367,7 @@ private function codeCoverageGenerationStart(string $format): void

private function codeCoverageGenerationSucceeded(): void
{
$this->printer->write(
$this->write(
sprintf(
"done [%s]\n",
Timer::secondsToTimeString(Timer::stop())
Expand All @@ -1379,7 +1377,7 @@ private function codeCoverageGenerationSucceeded(): void

private function codeCoverageGenerationFailed(\Exception $e): void
{
$this->printer->write(
$this->write(
sprintf(
"failed [%s]\n%s\n",
Timer::secondsToTimeString(Timer::stop()),
Expand Down

0 comments on commit 3f2d882

Please sign in to comment.