mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 18:51:41 +09:00
Use actually existing filename for v1 parse test
This commit is contained in:
parent
27ab3fa7d9
commit
8c4dfe744f
1 changed files with 2 additions and 2 deletions
|
|
@ -504,7 +504,7 @@ class TemplateParserV1Test extends \Codeception\Test\Unit
|
|||
|
||||
foreach ($tests as $test)
|
||||
{
|
||||
$tmpl = new \Rhymix\Framework\Template('./tests/_data/template', 'no_file.html');
|
||||
$tmpl = new \Rhymix\Framework\Template('./tests/_data/template', 'empty.html');
|
||||
$result = $tmpl->parse($test[0]);
|
||||
$between = str_starts_with($test[1], '?>') ? '' : ' ';
|
||||
$this->assertEquals($this->prefix . $between . $test[1], $result);
|
||||
|
|
@ -513,7 +513,7 @@ class TemplateParserV1Test extends \Codeception\Test\Unit
|
|||
|
||||
public function testParseNoContent()
|
||||
{
|
||||
$tmpl = new \Rhymix\Framework\Template('./tests/_data/template', 'no_file.html');
|
||||
$tmpl = new \Rhymix\Framework\Template('./tests/_data/template', 'empty.html');
|
||||
$result = $tmpl->parse(null);
|
||||
$this->assertEquals('', $result);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue