Ejemplo n.º 1
0
 public function assertHintsContain($str)
 {
     $config = $this->configurator->asConfig();
     ConfigHelper::filterVariants($config, 'JS');
     $xsl = $this->configurator->rendering->engine->getXSL($this->configurator->rendering);
     $generator = new HintGenerator();
     $generator->setConfig($config);
     $generator->setPlugins($this->configurator->plugins);
     $generator->setXSL($xsl);
     $this->assertContains($str, $generator->getHints());
 }
Ejemplo n.º 2
0
 /**
  * Generate a HINT object that contains informations about the configuration
  *
  * @return string JavaScript Code
  */
 protected function getHints()
 {
     $this->hintGenerator->setConfig($this->config);
     $this->hintGenerator->setPlugins($this->configurator->plugins);
     $this->hintGenerator->setXSL($this->xsl);
     return $this->hintGenerator->getHints();
 }