function testBlockCompile() { $handler = new XTemplater(); $data = $handler->getResource("file://{$this->dirname}/block.tpl"); $data = $handler->compile($data); $this->assertEquals(trim(file_get_contents("{$this->dirname}/block.tpl.ok")), $data, $data); }