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

Breadcrumb

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

function Driver::enableDeadCodeDetection

Throws

DeadCodeDetectionNotSupportedException

File

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

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 enableDeadCodeDetection() : void {
    if (!$this->canDetectDeadCode()) {
        throw new DeadCodeDetectionNotSupportedException(sprintf('%s does not support dead code detection', $this->nameAndVersion()));
    }
    $this->detectDeadCode = true;
}
RSS feed
Powered by Drupal