diff --git a/tests/Feature/EnvironmentTest.php b/tests/Feature/EnvironmentTest.php index 0ce0ec9..260e3f1 100644 --- a/tests/Feature/EnvironmentTest.php +++ b/tests/Feature/EnvironmentTest.php @@ -28,9 +28,10 @@ public function it_detects_a_port_conflict() private function bindFakeProcessToPort(int $port, $callback) { $socket = socket_create(domain: AF_INET, type: SOCK_STREAM, protocol: SOL_TCP); + assert($socket !== false, 'Was not able to create a socket.'); assert(socket_bind($socket, '127.0.0.1', $port) !== false, "Was not able to bind socket to port {$port}"); - assert(socket_listen($socket, backlog: 5)); + assert(socket_listen($socket)); try { $callback();