You are here

public function Runtime::canCollectCodeCoverage in Zircon Profile 8

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

Returns true when Xdebug is supported or the runtime used is PHPDBG (PHP >= 7.0).

Return value

bool

File

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

Class

Runtime
Utility class for HHVM/PHP environment handling.

Namespace

SebastianBergmann\Environment

Code

public function canCollectCodeCoverage() {
  return $this
    ->hasXdebug() || $this
    ->hasPHPDBGCodeCoverage();
}