Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. TestRunner.php

function TestRunner::shouldTimeLimitBeEnforced

1 call to TestRunner::shouldTimeLimitBeEnforced()
TestRunner::run in vendor/phpunit/phpunit/src/Framework/TestRunner.php

File

vendor/phpunit/phpunit/src/Framework/TestRunner.php, line 395

Class

TestRunner
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit

Namespace

PHPUnit\Framework

Code

private function shouldTimeLimitBeEnforced(TestCase $test) : bool {
    if (!$this->configuration
        ->enforceTimeLimit()) {
        return false;
    }
    if (!($this->configuration
        ->defaultTimeLimit() || $test->size()
        ->isKnown())) {
        return false;
    }
    if (extension_loaded('xdebug') && xdebug_is_debugger_active()) {
        return false;
    }
    return true;
}
RSS feed
Powered by Drupal