You are here

public function PHP_CodeCoverage::setCheckForUnintentionallyCoveredCode in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/phpunit/php-code-coverage/src/CodeCoverage.php \PHP_CodeCoverage::setCheckForUnintentionallyCoveredCode()

@since Method available since Release 2.0.0

Parameters

bool $flag:

Throws

PHP_CodeCoverage_Exception

File

vendor/phpunit/php-code-coverage/src/CodeCoverage.php, line 407

Class

PHP_CodeCoverage
Provides collection functionality for PHP code coverage information.

Code

public function setCheckForUnintentionallyCoveredCode($flag) {
  if (!is_bool($flag)) {
    throw PHP_CodeCoverage_Util_InvalidArgumentHelper::factory(1, 'boolean');
  }
  $this->checkForUnintentionallyCoveredCode = $flag;
}