Skip to content

Commit

Permalink
doctype
Browse files Browse the repository at this point in the history
  • Loading branch information
zzgab committed Nov 28, 2015
1 parent b19d129 commit 01a2183
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions test/ViewParserTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,23 @@ public function testDoctype()
<!doctype html>
<html></html>
EXPECTED;

$this->assertEquals($expected, $view->render());
}
public function testDoctypeIsIgnoredOnNonRootNode()
{
$view = new View();
$templateSource = <<<ENDXML
<fig:template>
<html fig:doctype="html"></html>
</fig:template>
ENDXML;
$view->loadString($templateSource);

$expected = <<<EXPECTED
<html></html>
EXPECTED;

$this->assertEquals($expected, $view->render());
Expand Down

0 comments on commit 01a2183

Please sign in to comment.