You are here

public static function PHPUnit_Util_Test::getProcessIsolationSettings in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/phpunit/phpunit/src/Util/Test.php \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

bool

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

File

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

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;
  }
}