diff --git a/src/Framework/TestRunner.php b/src/Framework/TestRunner.php index b1dd04a7004..c902cd2262c 100644 --- a/src/Framework/TestRunner.php +++ b/src/Framework/TestRunner.php @@ -251,7 +251,7 @@ public function run(TestCase $test): void */ public function runInSeparateProcess(TestCase $test, bool $runEntireClass, bool $preserveGlobalState): void { - if ($runEntireClass && $this->isPcntlForkAvailable()) { + if ($this->isPcntlForkAvailable()) { // forking the parent process is a more lightweight way to run a test in isolation. // it requires the pcntl extension though. $this->runInFork($test);