1--TEST-- 2SolrParams - clone [exception] 3--FILE-- 4<?php 5 6$params = new SolrModifiableParams(); 7 8$params 9 ->setParam('q', 'lucene') 10 ->setParam('start', 0) 11 ->setParam('rows', 10) 12 ->addParam('fq', 'popularity:[10 TO *]') 13 ->addParam('fq', 'section:0') 14; 15 16try { 17 $params2 = clone $params; 18} catch (SolrIllegalOperationException $e) { 19 echo sprintf("Exception %d: %s", $e->getCode(), $e->getMessage()).PHP_EOL; 20} 21 22?> 23--EXPECTF-- 24Exception 4001: Cloning of SolrParams object instances is currently not supported 25