1--TEST-- 2SolrParams::getParams() 3--FILE-- 4<?php 5 6$params = new SolrModifiableParams(); 7 8$params 9 ->set('q', 'lucene') 10 ->addParam('fq', 'popularity:[10 TO *]') 11 ->addParam('fq', 'section:0') 12; 13 14var_dump($params->getParams()); 15?> 16--EXPECT-- 17array(2) { 18 ["q"]=> 19 array(1) { 20 [0]=> 21 string(6) "lucene" 22 } 23 ["fq"]=> 24 array(2) { 25 [0]=> 26 string(20) "popularity:[10 TO *]" 27 [1]=> 28 string(9) "section:0" 29 } 30}