관리-도구
편집 파일: 150.solrcollapsefunction.phpt
--TEST-- SolrCollapseFunction - string conversion --FILE-- <?php $func = new SolrCollapseFunction('field'); $func->setField('field2'); $func->setMax('max'); $func->setMin('min'); $func->setSize(1000); $func->setHint('hint'); $func->setNullPolicy(SolrCollapseFunction::NULLPOLICY_EXPAND); var_dump($func->getField()); var_dump($func->getMax()); var_dump($func->getMin()); var_dump($func->getSize()); var_dump($func->getHint()); var_dump($func->getNullPolicy()); var_dump((string)$func); $func->setMax('with space'); var_dump((string)$func); ?> --EXPECTF-- string(6) "field2" string(3) "max" string(3) "min" string(4) "1000" string(4) "hint" string(6) "expand" string(78) "{!collapse field=field2 max=max min=min size=1000 hint=hint nullPolicy=expand}" string(87) "{!collapse field=field2 max='with space' min=min size=1000 hint=hint nullPolicy=expand}"