Ejemplo n.º 1
0
 function testHandlerUnknown()
 {
     $lang = new \Tempe\Lang\Basic([]);
     $parser = new \Tempe\Parser();
     $renderer = new \Tempe\Renderer($lang);
     $this->setExpectedException("Tempe\\Exception\\Render", "Handler 'nope' not found at line 1");
     $renderer->renderTree($parser->parse("{=nope}"));
 }
Ejemplo n.º 2
0
 function testNoNodes()
 {
     $renderer = new Renderer();
     $node = (object) ['type' => Renderer::P_VALUE];
     $this->assertEmpty($renderer->renderTree($node));
 }