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