You are here

private function PHPUnit_Framework_TestCase::snapshotGlobalState in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/phpunit/phpunit/src/Framework/TestCase.php \PHPUnit_Framework_TestCase::snapshotGlobalState()
1 call to PHPUnit_Framework_TestCase::snapshotGlobalState()
PHPUnit_Framework_TestCase::runBare in vendor/phpunit/phpunit/src/Framework/TestCase.php
Runs the bare test sequence.

File

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

Class

PHPUnit_Framework_TestCase
A TestCase defines the fixture to run multiple tests.

Code

private function snapshotGlobalState() {
  $backupGlobals = $this->backupGlobals === null || $this->backupGlobals === true;
  if ($this->runTestInSeparateProcess || $this->inIsolation || !$backupGlobals && !$this->backupStaticAttributes) {
    return;
  }
  $this->snapshot = $this
    ->createGlobalStateSnapshot($backupGlobals);
}