Skip to content

Commit e6aa593

Browse files
Do not check for class that is always available
1 parent ee21897 commit e6aa593

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

src/Framework/TestRunner.php

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111

1212
use const PHP_EOL;
1313
use function assert;
14-
use function class_exists;
1514
use function defined;
1615
use function error_clear_last;
1716
use function extension_loaded;
@@ -386,12 +385,6 @@ private function canTimeLimitBeEnforced(): bool
386385
return $this->timeLimitCanBeEnforced;
387386
}
388387

389-
if (!class_exists(Invoker::class)) {
390-
$this->timeLimitCanBeEnforced = false;
391-
392-
return $this->timeLimitCanBeEnforced;
393-
}
394-
395388
$this->timeLimitCanBeEnforced = (new Invoker)->canInvokeWithTimeout();
396389

397390
return $this->timeLimitCanBeEnforced;

0 commit comments

Comments
 (0)