We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c571df3 commit a3ce296Copy full SHA for a3ce296
src/Framework/TestRunner.php
@@ -420,12 +420,13 @@ private function shouldTimeLimitBeEnforced(TestCase $test): bool
420
private function runTestWithTimeout(TestCase $test): bool
421
{
422
$_timeout = $this->configuration->defaultTimeLimit();
423
+ $testSize = $test->size();
424
- if ($test->size()->isSmall()) {
425
+ if ($testSize->isSmall()) {
426
$_timeout = $this->configuration->timeoutForSmallTests();
- } elseif ($test->size()->isMedium()) {
427
+ } elseif ($testSize->isMedium()) {
428
$_timeout = $this->configuration->timeoutForMediumTests();
- } elseif ($test->size()->isLarge()) {
429
+ } elseif ($testSize->isLarge()) {
430
$_timeout = $this->configuration->timeoutForLargeTests();
431
}
432
0 commit comments