You are here

private function DeprecationListenerTrait::willBeIsolated in Drupal 8

Determines if a test is isolated.

Parameters

\PHPUnit\Framework\TestCase $test: The test to check.

Return value

bool TRUE if the isolated, FALSE if not.

1 call to DeprecationListenerTrait::willBeIsolated()
DeprecationListenerTrait::deprecationStartTest in core/tests/Drupal/Tests/Listeners/DeprecationListenerTrait.php

File

core/tests/Drupal/Tests/Listeners/DeprecationListenerTrait.php, line 92

Class

DeprecationListenerTrait
Removes deprecations that we are yet to fix.

Namespace

Drupal\Tests\Listeners

Code

private function willBeIsolated($test) {
  if ($test
    ->isInIsolation()) {
    return FALSE;
  }
  $r = new \ReflectionProperty($test, 'runTestInSeparateProcess');
  $r
    ->setAccessible(TRUE);
  return $r
    ->getValue($test);
}