Doctrine\Tests\ODM\CouchDB\CouchDBFunctionalTestCase::getHttpClient PHP Method

getHttpClient() public method

public getHttpClient ( ) : Doctrine\CouchDB\HTTP\Client
return Doctrine\CouchDB\HTTP\Client
    public function getHttpClient()
    {
        if ($this->httpClient === null) {
            if (isset($GLOBALS['DOCTRINE_COUCHDB_CLIENT'])) {
                $this->httpClient = new $GLOBALS['DOCTRINE_COUCHDB_CLIENT']();
            } else {
                $this->httpClient = new SocketClient();
            }
            $this->logger = new \Doctrine\CouchDB\HTTP\LoggingClient($this->httpClient);
        }
        return $this->logger;
    }