1--TEST--
2SolrDocument - checking dimension and magic property sets.
3--FILE--
4<?php
5
6require_once "bootstrap.inc";
7
8$doc = new SolrDocument();
9
10$doc->addField('id', 1123);
11
12$doc->features = "PHP Client Side";
13$doc->features = "Fast development cycles";
14
15$doc['cat'] = 'Software';
16$doc['cat'] = 'Custom Search';
17$doc->cat   = 'Information Technology';
18
19print_r($doc->toArray());
20
21?>
22--EXPECT--
23Array
24(
25    [document_boost] => 0
26    [field_count] => 3
27    [fields] => Array
28        (
29            [0] => SolrDocumentField Object
30                (
31                    [name] => id
32                    [boost] => 0
33                    [values] => Array
34                        (
35                            [0] => 1123
36                        )
37
38                )
39
40            [1] => SolrDocumentField Object
41                (
42                    [name] => features
43                    [boost] => 0
44                    [values] => Array
45                        (
46                            [0] => PHP Client Side
47                            [1] => Fast development cycles
48                        )
49
50                )
51
52            [2] => SolrDocumentField Object
53                (
54                    [name] => cat
55                    [boost] => 0
56                    [values] => Array
57                        (
58                            [0] => Software
59                            [1] => Custom Search
60                            [2] => Information Technology
61                        )
62
63                )
64
65        )
66
67)
68