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

Breadcrumb

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

function CodeCoverage::start

Same name in this branch
  1. 11.1.x vendor/phpunit/php-code-coverage/src/CodeCoverage.php \SebastianBergmann\CodeCoverage\CodeCoverage::start()

Throws

MoreThanOneDataSetFromDataProviderException

File

vendor/phpunit/phpunit/src/Runner/CodeCoverage.php, line 148

Class

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

Namespace

PHPUnit\Runner

Code

public function start(TestCase $test) : void {
    if ($this->collecting) {
        return;
    }
    $size = TestSize::unknown();
    if ($test->size()
        ->isSmall()) {
        $size = TestSize::small();
    }
    elseif ($test->size()
        ->isMedium()) {
        $size = TestSize::medium();
    }
    elseif ($test->size()
        ->isLarge()) {
        $size = TestSize::large();
    }
    $this->test = $test;
    $this->codeCoverage
        ->start($test->valueObjectForEvents()
        ->id(), $size);
    $this->collecting = true;
}
RSS feed
Powered by Drupal