You are here

public function PHPUnit_Framework_TestCase::setBackupGlobals in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/phpunit/phpunit/src/Framework/TestCase.php \PHPUnit_Framework_TestCase::setBackupGlobals()

Calling this method in setUp() has no effect!

@since Method available since Release 3.3.0

Parameters

bool $backupGlobals:

File

vendor/phpunit/phpunit/src/Framework/TestCase.php, line 1065

Class

PHPUnit_Framework_TestCase
A TestCase defines the fixture to run multiple tests.

Code

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