Phalcon\Test\Unit\Tag\TagTagHtmlTest::testTagHtmlNameEol PHP 메소드

testTagHtmlNameEol() 공개 메소드

Tests tagHtml with name parameter and EOL
부터: 2014-09-05
저자: 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);
        });
    }