You are here

public function Runtime::hasXdebug in Zircon Profile 8.0

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

Returns true when the runtime used is PHP and Xdebug is loaded.

Return value

bool

1 call to Runtime::hasXdebug()
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 147

Class

Runtime
Utility class for HHVM/PHP environment handling.

Namespace

SebastianBergmann\Environment

Code

public function hasXdebug() {
  return ($this
    ->isPHP() || $this
    ->isHHVM()) && extension_loaded('xdebug');
}