public function testTagHtmlCloseEol()
{
$this->specify("tagHtmlClose with EOL returns invalid HTML Strict", function () {
Tag::resetInput();
$name = 'canvas';
$expected = '</canvas>' . PHP_EOL;
Tag::setDocType(Tag::XHTML10_STRICT);
$actual = Tag::tagHtmlClose($name, true);
expect($actual)->equals($expected);
});
$this->specify("tagHtmlClose with EOL returns invalid HTML XHTML", function () {
Tag::resetInput();
$name = 'canvas';
$expected = '</canvas>' . PHP_EOL;
Tag::setDocType(Tag::HTML5);
$actual = Tag::tagHtmlClose($name, true);
expect($actual)->equals($expected);
});
}