mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-04 09:32:15 +09:00
Partial implementation of unit test for template parser v2
This commit is contained in:
parent
a362f27f62
commit
9da1d56b21
4 changed files with 103 additions and 2 deletions
|
|
@ -521,7 +521,7 @@ class TemplateParserV1Test extends \Codeception\TestCase\Test
|
|||
public function testCompileDirect()
|
||||
{
|
||||
$tmpl = new \Rhymix\Framework\Template();
|
||||
$result = $tmpl->compileDirect('./tests/_data/template', 'sample.html');
|
||||
$result = $tmpl->compileDirect('./tests/_data/template', 'v1example.html');
|
||||
$result = trim($result);
|
||||
|
||||
$this->assertEquals($this->prefix . ' if($__Context->has_blog ?? false){ ?><a href="http://mygony.com">Taggon\'s blog</a><?php } ?>'.PHP_EOL.'<!--#Meta://external.host/js.js--><?php Context::loadFile([\'//external.host/js.js\', \'\', \'tests\', \'\']); ?>', $result);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue