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

Breadcrumb

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

function XdebugDriver::stop

Overrides Driver::stop

File

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

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 stop() : RawCodeCoverageData {
    $data = xdebug_get_code_coverage();
    xdebug_stop_code_coverage();
    if ($this->collectsBranchAndPathCoverage()) {
        
        /* @var XdebugCodeCoverageWithPathCoverageType $data */
        return RawCodeCoverageData::fromXdebugWithPathCoverage($data);
    }
    
    /* @var XdebugCodeCoverageWithoutPathCoverageType $data */
    return RawCodeCoverageData::fromXdebugWithoutPathCoverage($data);
}

API Navigation

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