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

testImageArrayParameterWithNameNoSrc() public méthode

Tests image with name and no src in parameter
Since: 2014-09-05
Author: Nikolaos Dimopoulos ([email protected])
    public function testImageArrayParameterWithNameNoSrc()
    {
        $this->specify("image with array parameter with name no src returns invalid HTML Strict", function () {
            $options = ['img/hello.gif', 'class' => 'x_class'];
            $expected = '<img src="/img/hello.gif" class="x_class"';
            $this->tester->testFieldParameter('image', $options, $expected, false);
        });
        $this->specify("image with array parameter with name no src returns invalid HTML XHTML", function () {
            $options = ['img/hello.gif', 'class' => 'x_class'];
            $expected = '<img src="/img/hello.gif" class="x_class"';
            $this->tester->testFieldParameter('image', $options, $expected, false);
        });
    }