Phalcon\Test\Unit\Tag\TagTagHtmlTest::testNameSelfClose PHP Метод

testNameSelfClose() публичный Метод

Tests tagHtml with name parameter and self close
С версии: 2014-09-05
Автор: Nikolaos Dimopoulos ([email protected])
public testNameSelfClose ( )
    public function testNameSelfClose()
    {
        $this->specify("tagHtml with name parameter and self close returns invalid HTML Strict", function () {
            Tag::resetInput();
            $name = 'aside';
            $expected = '<aside />';
            Tag::setDocType(Tag::XHTML10_STRICT);
            $actual = Tag::tagHtml($name, null, true);
            expect($actual)->equals($expected);
        });
        $this->specify("tagHtml with name parameter and self close returns invalid HTML XHTML", function () {
            Tag::resetInput();
            $name = 'aside';
            $expected = '<aside></aside>';
            Tag::setDocType(Tag::HTML5);
            $actual = Tag::tagHtml($name, null, true);
            expect($actual)->equals($expected);
        });
    }