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