Returns true when Xdebug is supported or
the runtime used is PHPDBG (PHP >= 7.0).
public static canCollectCodeCoverage ( ) : boolean | ||
return | boolean |
/** * @covers JBZoo\Utils\Sys::canCollectCodeCoverage * @uses JBZoo\Utils\Sys::hasXdebug * @uses JBZoo\Utils\Sys::isHHVM * @uses JBZoo\Utils\Sys::isPHP */ public function testAbilityToCollectCodeCoverageCanBeAssessed() { $this->assertInternalType('boolean', Sys::canCollectCodeCoverage()); }