File: 010.solrclient_getOptions.phpt

package info (click to toggle)
php-solr 2.8.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,620 kB
  • sloc: ansic: 14,274; xml: 1,313; php: 1,239; pascal: 11; makefile: 3
file content (49 lines) | stat: -rw-r--r-- 774 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
--TEST--
SolrClient::getOptions - Returning all the default options
--FILE--
<?php

$options = array('secure' => false);

$client = new SolrClient($options);

var_dump($client->getOptions());

?>
--EXPECTF--
array(17) {
  ["timeout"]=>
  int(30)
  ["secure"]=>
  bool(false)
  ["hostname"]=>
  string(9) "localhost"
  ["wt"]=>
  string(3) "xml"
  ["port"]=>
  int(8983)
  ["proxy_host"]=>
  string(0) ""
  ["proxy_port"]=>
  int(0)
  ["path"]=>
  string(4) "solr"
  ["http_auth"]=>
  string(0) ""
  ["proxy_auth"]=>
  string(0) ""
  ["ssl_verify_peer"]=>
  bool(false)
  ["ssl_verify_host"]=>
  int(2)
  ["ssl_cert"]=>
  string(0) ""
  ["ssl_key"]=>
  string(0) ""
  ["ssl_keypassword"]=>
  string(0) ""
  ["ssl_cainfo"]=>
  string(0) ""
  ["ssl_capath"]=>
  string(0) ""
}