private function verifyHealthCheck(): bool
    {
        $service = $this->httpService;

        // Verify that the service is up.
        $tries    = 0;
        $maxTries = $this->config->getHealthCheckTimeout();
        do {
            ++$tries;

            try {
                $status = $service->healthCheck();

                return $status;
            } catch (ConnectException $e) {
                \sleep(1);
            }
        } while ($tries <= $maxTries);

        throw new HealthCheckFailedException("Failed to make connection to Mock Server in {$maxTries} attempts.");
    }
private function verifyHealthCheck(): bool
    {
        $service = $this->httpService;

        // Verify that the service is up.
        $tries    = 0;
        $maxTries = $this->config->getHealthCheckTimeout();
        do {
            ++$tries;

            try {
                $status = $service->healthCheck();

                return $status;
            } catch (ConnectException $e) {
                \sleep(1);
            }
        } while ($tries <= $maxTries);

        throw new HealthCheckFailedException("Failed to make connection to Mock Server in {$maxTries} attempts.");
    }
private function verifyHealthCheck ( ) : bool { $ service = $ this -> httpService ; // Verify that the service is up. $ tries = 0 ; $ maxTries = $ this -> config -> getHealthCheckTimeout ( ) ; do { ++ $ tries ; try { $ status = $ service -> healthCheck ( ) ; return $ status ; } catch ( ConnectException $ e ) { \ sleep ( 1 ) ; } } while ( $ tries <= $ maxTries ) ; throw new HealthCheckFailedException ( "Failed to make connection to Mock Server in {$maxTries} attempts." ) ; }
Make sure the server starts as expected.

@throws Exception

@return bool
Make sure the server starts as expected .