You are here

public static function PHPUnit_Util_Test::getBackupSettings in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/phpunit/phpunit/src/Util/Test.php \PHPUnit_Util_Test::getBackupSettings()

Returns the backup settings for a test.

@since Method available since Release 3.4.0

Parameters

string $className:

string $methodName:

Return value

array

1 call to PHPUnit_Util_Test::getBackupSettings()
PHPUnit_Framework_TestSuite::createTest in vendor/phpunit/phpunit/src/Framework/TestSuite.php

File

vendor/phpunit/phpunit/src/Util/Test.php, line 534

Class

PHPUnit_Util_Test
Test helpers.

Code

public static function getBackupSettings($className, $methodName) {
  return array(
    'backupGlobals' => self::getBooleanAnnotationSetting($className, $methodName, 'backupGlobals'),
    'backupStaticAttributes' => self::getBooleanAnnotationSetting($className, $methodName, 'backupStaticAttributes'),
  );
}