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

Breadcrumb

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

function Driver::enableBranchAndPathCoverage

Throws

BranchAndPathCoverageNotSupportedException

File

vendor/phpunit/php-code-coverage/src/Driver/Driver.php, line 72

Class

Driver
@internal This class is not covered by the backward compatibility promise for phpunit/php-code-coverage

Namespace

SebastianBergmann\CodeCoverage\Driver

Code

public function enableBranchAndPathCoverage() : void {
    if (!$this->canCollectBranchAndPathCoverage()) {
        throw new BranchAndPathCoverageNotSupportedException(sprintf('%s does not support branch and path coverage', $this->nameAndVersion()));
    }
    $this->collectBranchAndPathCoverage = true;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal