Ejemplo n.º 1
0
 /**
  *
  */
 public function setUp()
 {
     parent::setUp();
     $templateDirectory = dirname(__DIR__) . "/./templates/";
     $compileDirectory = dirname(__DIR__) . "/./../tmp/generatedTemplates/";
     $jigConfig = new JigConfig($templateDirectory, $compileDirectory, Jig::COMPILE_ALWAYS, "php.tpl");
     $provider = new \Auryn\Injector();
     $provider->share($jigConfig);
     $provider->share($provider);
     $jigConverter = new JigConverter($jigConfig);
     //$this->jigRender = new JigRender($jigConfig, $jigConverter);
     $this->jig = new \Jig\JigDispatcher($jigConfig, $provider, $jigConverter);
 }
Ejemplo n.º 2
0
 public function setUp()
 {
     parent::setUp();
     $this->compileDirectory = new JigCompilePath(dirname(__DIR__) . "/./../tmp/generatedTemplates/");
     $this->templateDirectory = new JigTemplatePath(dirname(__DIR__) . "/./templates/");
     $jigConfig = new JigConfig($this->templateDirectory, $this->compileDirectory, Jig::COMPILE_ALWAYS, "php.tpl");
     $injector = new \Auryn\Injector();
     $this->injector = $injector;
     $escaper = new ZendEscaperBridge(new ZendEscaper());
     $this->injector->alias('Jig\\Escaper', get_class($escaper));
     $this->injector->share($escaper);
     $this->jigDispatcher = new JigDispatcher($jigConfig, $injector);
 }
Ejemplo n.º 3
0
 /**
  *
  */
 public function setUp()
 {
     parent::setUp();
 }