Esempio n. 1
0
 /**
  * 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);
 }
Esempio n. 2
0
 /**
  * Test exception on undefined handler.
  *
  * @return void
  *
  * @expectedException        RuntimeException
  * @expectedExceptionMessage Undefined function handler
  */
 public function testGetHandlerThrowsOnUndefinedFunctionHandler()
 {
     $map = new HandlerMap([]);
     $map->getHandler('search');
 }