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

Breadcrumb

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

function Runtime::canCollectCodeCoverage

Returns true when Xdebug or PCOV is available or the runtime used is PHPDBG.

File

vendor/sebastian/environment/src/Runtime.php, line 40

Class

Runtime

Namespace

SebastianBergmann\Environment

Code

public function canCollectCodeCoverage() : bool {
    return $this->hasXdebug() || $this->hasPCOV() || $this->hasPHPDBGCodeCoverage();
}
RSS feed
Powered by Drupal