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\ProgressPrinterCode
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;
}