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.
2 parents c9944d4 + a3ce296 commit 7e618adCopy full SHA for 7e618ad
src/Framework/TestRunner.php
@@ -408,12 +408,13 @@ private function shouldTimeLimitBeEnforced(TestCase $test): bool
408
private function runTestWithTimeout(TestCase $test): bool
409
{
410
$_timeout = $this->configuration->defaultTimeLimit();
411
+ $testSize = $test->size();
412
- if ($test->size()->isSmall()) {
413
+ if ($testSize->isSmall()) {
414
$_timeout = $this->configuration->timeoutForSmallTests();
- } elseif ($test->size()->isMedium()) {
415
+ } elseif ($testSize->isMedium()) {
416
$_timeout = $this->configuration->timeoutForMediumTests();
- } elseif ($test->size()->isLarge()) {
417
+ } elseif ($testSize->isLarge()) {
418
$_timeout = $this->configuration->timeoutForLargeTests();
419
}
420
0 commit comments