1--TEST--
2SolrClient::ping() - Ping Solr Server
3--SKIPIF--
4<?php require_once 'skip.if.server_not_configured.inc'; ?>
5--FILE--
6<?php
7
8require_once "bootstrap.inc";
9
10$options = array
11(
12    'hostname' => SOLR_SERVER_HOSTNAME,
13    'login'    => SOLR_SERVER_USERNAME,
14    'password' => SOLR_SERVER_PASSWORD,
15    'port'     => SOLR_SERVER_PORT,
16    'path'	   => SOLR_SERVER_PATH
17);
18
19$client = new SolrClient($options);
20
21$pingResponse = $client->ping();
22
23echo $pingResponse->getRawResponse();
24?>
25--EXPECT--
26HTTP/1.1 200 OK
27Content-Type: application/xml; charset=UTF-8
28Content-Length: 0