Example #1
0
 /**
  * @covers PhCompile\Template\Template::compile
  * @covers PhCompile\Template\Template::compileAttribute
  */
 public function testCompile()
 {
     $this->template->loadHtml(TEST_PATH . 'template/overall.html');
     $this->template->setScope(new Scope(json_decode(file_get_contents(TEST_PATH . 'template/overallData.json'), true)));
     $expectedHtml = file_get_contents(TEST_PATH . 'template/overallCompiled.html');
     $this->assertSame($expectedHtml, $this->template->compile());
 }