You are here

public function Runtime::hasPHPDBGCodeCoverage in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/sebastian/environment/src/Runtime.php \SebastianBergmann\Environment\Runtime::hasPHPDBGCodeCoverage()

Returns true when the runtime used is PHP with the PHPDBG SAPI and the phpdbg_*_oplog() functions are available (PHP >= 7.0).

Return value

bool

1 call to Runtime::hasPHPDBGCodeCoverage()
Runtime::canCollectCodeCoverage in vendor/sebastian/environment/src/Runtime.php
Returns true when Xdebug is supported or the runtime used is PHPDBG (PHP >= 7.0).

File

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

Class

Runtime
Utility class for HHVM/PHP environment handling.

Namespace

SebastianBergmann\Environment

Code

public function hasPHPDBGCodeCoverage() {
  return $this
    ->isPHPDBG() && function_exists('phpdbg_start_oplog');
}