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

Breadcrumb

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

function XdebugDriver::start

Overrides Driver::start

File

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

Class

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

Namespace

SebastianBergmann\CodeCoverage\Driver

Code

public function start() : void {
    $flags = XDEBUG_CC_UNUSED;
    if ($this->detectsDeadCode() || $this->collectsBranchAndPathCoverage()) {
        $flags |= XDEBUG_CC_DEAD_CODE;
    }
    if ($this->collectsBranchAndPathCoverage()) {
        $flags |= XDEBUG_CC_BRANCH_CHECK;
    }
    xdebug_start_code_coverage($flags);
}

API Navigation

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