You are here

public function PHPUnit_Framework_TestSuite::setDisallowChangesToGlobalState in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/phpunit/phpunit/src/Framework/TestSuite.php \PHPUnit_Framework_TestSuite::setDisallowChangesToGlobalState()

@since Method available since Release 4.6.0

Parameters

bool $disallowChangesToGlobalState:

File

vendor/phpunit/phpunit/src/Framework/TestSuite.php, line 931

Class

PHPUnit_Framework_TestSuite
A TestSuite is a composite of Tests. It runs a collection of test cases.

Code

public function setDisallowChangesToGlobalState($disallowChangesToGlobalState) {
  if (is_null($this->disallowChangesToGlobalState) && is_bool($disallowChangesToGlobalState)) {
    $this->disallowChangesToGlobalState = $disallowChangesToGlobalState;
  }
}