Phalcon\Test\Unit\Tag\TagTagHtmlTest::testTagHtmlNameEol PHP Method

testTagHtmlNameEol() public method

Tests tagHtml with name parameter and EOL
Since: 2014-09-05
Author: Nikolaos Dimopoulos ([email protected])
public testTagHtmlNameEol ( )
    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);
        });
    }