protected function guardServerStarting()
    {
        if ($socket = @fsockopen($this->host, $this->port, $errorNumber = 0, $errorString = '', $timeout = 1)) {
            fclose($socket);
            throw new UnableToStartServer($this->host.':'.$this->port);
        }
    }
protected function guardServerStarting()
    {
        if ($socket = @fsockopen($this->host, $this->port, $errorNumber = 0, $errorString = '', $timeout = 1)) {
            fclose($socket);
            throw new UnableToStartServer($this->host.':'.$this->port);
        }
    }
protected function guardServerStarting ( ) { if ( $ socket = @ fsockopen ( $ this -> host , $ this -> port , $ errorNumber = 0 , $ errorString = '' , $ timeout = 1 ) ) { fclose ( $ socket ) ; throw new UnableToStartServer ( $ this -> host . ':' . $ this -> port ) ; } }
Verify that there isn't an existing server on the host and port
that we want to use.  Sometimes a server can be left oped when
PHP drops out, or the user may have another service running.

@throws \Orchestra\Testbench\Dusk\Exceptions\UnableToStartServer
Verify that there isn t an existing server on the host and port that we want to use . Sometimes a server can be left oped when PHP drops out or the user may have another service running .