/** * Extract terms from a SOLR index. * * @param ParamBag $params Parameters * * @return string */ public function terms(ParamBag $params) { $handler = $this->map->getHandler(__FUNCTION__); $this->map->prepare(__FUNCTION__, $params); return $this->query($handler, $params); }
/** * Test exception on undefined handler. * * @return void * * @expectedException RuntimeException * @expectedExceptionMessage Undefined function handler */ public function testGetHandlerThrowsOnUndefinedFunctionHandler() { $map = new HandlerMap([]); $map->getHandler('search'); }