function DeprecationListenerTrait::willBeIsolated

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.