canCollectCodeCoverage() public static method

Returns true when Xdebug is supported or the runtime used is PHPDBG (PHP >= 7.0).
public static canCollectCodeCoverage ( ) : boolean
return boolean
Beispiel #1
0
 /**
  * @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());
 }