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

testTagHtmlName() public method

Tests tagHtml with name parameter
Since: 2014-09-05
Author: Nikolaos Dimopoulos ([email protected])
public testTagHtmlName ( )
    public function testTagHtmlName()
    {
        $this->specify("tagHtml with name parameter returns invalid HTML Strict", function () {
            Tag::resetInput();
            $name = 'aside';
            $expected = '<aside>';
            Tag::setDocType(Tag::XHTML10_STRICT);
            $actual = Tag::tagHtml($name);
            expect($actual)->equals($expected);
        });
        $this->specify("tagHtml with name parameter returns invalid HTML XHTML", function () {
            Tag::resetInput();
            $name = 'aside';
            $expected = '<aside></aside>';
            Tag::setDocType(Tag::HTML5);
            $actual = Tag::tagHtml($name);
            expect($actual)->equals($expected);
        });
    }