Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. ProgressPrinter.php

function ProgressPrinter::testRunnerExecutionStarted

File

vendor/phpunit/phpunit/src/TextUI/Output/Default/ProgressPrinter/ProgressPrinter.php, line 68

Class

ProgressPrinter
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit

Namespace

PHPUnit\TextUI\Output\Default\ProgressPrinter

Code

public function testRunnerExecutionStarted(ExecutionStarted $event) : void {
    $this->numberOfTestsRun = 0;
    $this->numberOfTests = $event->testSuite()
        ->count();
    $this->numberOfTestsWidth = strlen((string) $this->numberOfTests);
    $this->column = 0;
    $this->maxColumn = $this->numberOfColumns - strlen('  /  (XXX%)') - 2 * $this->numberOfTestsWidth;
}
RSS feed
Powered by Drupal