コード例 #1
0
ファイル: TestCase.php プロジェクト: noiselabs/SmartyBundle
 protected function renderXml($name, $context = array())
 {
     $template = $this->createTemplate($name);
     return new \SimpleXMLElement($this->engine->render($template));
 }
コード例 #2
0
 /**
  * @since  0.1.0
  * @author Vítor Brandão <*****@*****.**>
  */
 public function testGetLoader()
 {
     $container = $this->createContainer();
     $engine = new ProjectTemplateEngine($this->smarty, $container, new TemplateNameParser(), $this->loader, array());
     $this->assertSame($this->loader, $engine->getLoader());
 }