Skip to content

Commit

Permalink
Do not check for class that is always available
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbergmann committed May 7, 2024
1 parent ee21897 commit e6aa593
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/Framework/TestRunner.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@

use const PHP_EOL;
use function assert;
use function class_exists;
use function defined;
use function error_clear_last;
use function extension_loaded;
Expand Down Expand Up @@ -386,12 +385,6 @@ private function canTimeLimitBeEnforced(): bool
return $this->timeLimitCanBeEnforced;
}

if (!class_exists(Invoker::class)) {
$this->timeLimitCanBeEnforced = false;

return $this->timeLimitCanBeEnforced;
}

$this->timeLimitCanBeEnforced = (new Invoker)->canInvokeWithTimeout();

return $this->timeLimitCanBeEnforced;
Expand Down

0 comments on commit e6aa593

Please sign in to comment.