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

Breadcrumb

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

function Runtime::hasPCOV

Returns true when the runtime used is PHP with PCOV loaded and enabled.

2 calls to Runtime::hasPCOV()
Runtime::canCollectCodeCoverage in vendor/sebastian/environment/src/Runtime.php
Returns true when Xdebug or PCOV is available or the runtime used is PHPDBG.
Runtime::getNameWithVersionAndCodeCoverageDriver in vendor/sebastian/environment/src/Runtime.php

File

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

Class

Runtime

Namespace

SebastianBergmann\Environment

Code

public function hasPCOV() : bool {
    return $this->isPHP() && extension_loaded('pcov') && ini_get('pcov.enabled');
}

API Navigation

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