protected function setUp()
 {
     $this->container = new ContainerBuilder();
     $haringoBuilder = new HaringoBuilderImpl();
     $ext = $this->getExtension($this->container);
     $haringoBuilder->addValueSourceExtension($ext);
     $this->haringo = $haringoBuilder->build();
 }
Ejemplo n.º 2
0
 protected function setUp()
 {
     $HaringoBuilder = new HaringoBuilderImpl();
     $HaringoBuilder->setParamSelectorMap($this->getParamSelectorMap());
     $HaringoBuilder->setClassSourceMap($this->getClassSourceMap());
     $HaringoBuilder->setMethodSelectorMap($this->getMethodSelectorMap());
     $this->haringo = $HaringoBuilder->build();
 }
 /**
  * @param ValueSourceExtension $extension
  * @return \lukaszmakuch\Haringo\Haringo
  */
 private function buildExtendedBuilder(ValueSourceExtension $extension)
 {
     $builder = new HaringoBuilderImpl();
     $builder->addValueSourceExtension($extension);
     return $builder->build();
 }