Phalcon\Test\Unit\Tag\TagImageTest::testImageArrayParameterLocalLink PHP Méthode

    public function testImageArrayParameterLocalLink()
    {
        $this->specify("image with array parameter and local link returns invalid HTML Strict", function () {
            $options = ['img/hello.gif', 'alt' => 'Hello'];
            $expected = '<img src="/img/hello.gif" alt="Hello" />';
            Tag::setDocType(Tag::XHTML10_STRICT);
            $actual = Tag::image($options, true);
            expect($actual)->equals($expected);
        });
        $this->specify("image with array parameter and local link returns invalid HTML XHTML", function () {
            $options = ['img/hello.gif', 'alt' => 'Hello'];
            $expected = '<img src="/img/hello.gif" alt="Hello">';
            Tag::setDocType(Tag::HTML5);
            $actual = Tag::image($options, true);
            expect($actual)->equals($expected);
        });
    }