You are here

public function PHP_CodeCoverage::setCacheTokens in Zircon Profile 8.0

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

@since Method available since Release 1.1.0

Parameters

bool $flag:

Throws

PHP_CodeCoverage_Exception

File

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

Class

PHP_CodeCoverage
Provides collection functionality for PHP code coverage information.

Code

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