public static function PHPUnit_Util_Test::getProcessIsolationSettings

Returns the process isolation settings for a test.

@since Method available since Release 3.4.1

Parameters

string $className:

string $methodName:

Return value

boolean

1 call to PHPUnit_Util_Test::getProcessIsolationSettings()
PHPUnit_Framework_TestSuite::createTest in drupal/core/vendor/phpunit/phpunit/PHPUnit/Framework/TestSuite.php

File

drupal/core/vendor/phpunit/phpunit/PHPUnit/Util/Test.php, line 536

Class

PHPUnit_Util_Test
Test helpers.

Code

public static function getProcessIsolationSettings($className, $methodName) {
  $annotations = self::parseTestMethodAnnotations($className, $methodName);
  if (isset($annotations['class']['runTestsInSeparateProcesses']) || isset($annotations['method']['runInSeparateProcess'])) {
    return TRUE;
  }
  else {
    return FALSE;
  }
}