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

testTagHtmlNameOnlyStart() public method

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