1--TEST--
2SolrResponse::getHttpStatus() - getHttpStatusMessage()
3--SKIPIF--
4<?php
5include 'skip.if.server_not_configured.inc';
6?>
7--FILE--
8<?php
9
10require_once "bootstrap.inc";
11
12$options = array
13(
14    'hostname' => SOLR_SERVER_HOSTNAME,
15    'login'    => SOLR_SERVER_USERNAME,
16    'password' => SOLR_SERVER_PASSWORD,
17    'port'     => SOLR_SERVER_PORT,
18	'path'	   => SOLR_SERVER_PATH,
19);
20
21
22$client = new SolrClient($options);
23
24$query = new SolrQuery();
25
26$query->setQuery('lucene');
27
28$query->setStart(0);
29
30$query->setRows(50);
31
32$query->addField('cat')->addField('features')->addField('id')->addField('timestamp');
33
34$query_response = $client->query($query);
35
36var_dump($query_response->getHttpStatus());
37var_dump($query_response->getHttpStatusMessage());
38?>
39--EXPECTF--
40int(200)
41string(1) " "