diff --git a/packages/framework/tests/Unit/ServeCommandOptionsUnitTest.php b/packages/framework/tests/Unit/ServeCommandOptionsUnitTest.php index f07315d23e9..7764ba5af62 100644 --- a/packages/framework/tests/Unit/ServeCommandOptionsUnitTest.php +++ b/packages/framework/tests/Unit/ServeCommandOptionsUnitTest.php @@ -7,6 +7,7 @@ use Mockery; use Hyde\Testing\UnitTestCase; use Hyde\Foundation\HydeKernel; +use Illuminate\Process\Factory; use Illuminate\Console\OutputStyle; use Hyde\Console\Commands\ServeCommand; use Illuminate\Support\Facades\Process; @@ -26,6 +27,9 @@ protected function setUp(): void 'hyde.server.host' => 'localhost', 'hyde.server.port' => 8080, ]); + + Process::swap(new Factory()); + Process::preventStrayProcesses(); } protected function tearDown(): void