/** * Tests tagHtmlClose with EOL * * @author Nikolaos Dimopoulos <*****@*****.**> * @since 2014-09-05 */ public function testTagHtmlCloseEol() { $this->specify("tagHtmlClose with EOL returns invalid HTML Strict", function () { PhTTag::resetInput(); $name = 'canvas'; $expected = '</canvas>' . PHP_EOL; PhTTag::setDocType(PhTTag::XHTML10_STRICT); $actual = PhTTag::tagHtmlClose($name, true); expect($actual)->equals($expected); }); $this->specify("tagHtmlClose with EOL returns invalid HTML XHTML", function () { PhTTag::resetInput(); $name = 'canvas'; $expected = '</canvas>' . PHP_EOL; PhTTag::setDocType(PhTTag::HTML5); $actual = PhTTag::tagHtmlClose($name, true); expect($actual)->equals($expected); }); }