Phalcon\Test\Unit\Tag\TagImageTest::testImageArrayParameterWithSrc PHP Метод

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

Tests image with array as a parameters and src in it
С версии: 2014-09-05
Автор: Nikolaos Dimopoulos ([email protected])
    public function testImageArrayParameterWithSrc()
    {
        $this->specify("image with array parameter with src returns invalid HTML Strict", function () {
            $options = ['img/hello.gif', 'src' => 'img/goodbye.gif', 'class' => 'x_class'];
            $expected = '<img src="/img/goodbye.gif" class="x_class"';
            $this->tester->testFieldParameter('image', $options, $expected, true);
        });
        $this->specify("image with array parameter with src returns invalid HTML XHTML", function () {
            $options = ['img/hello.gif', 'src' => 'img/goodbye.gif', 'class' => 'x_class'];
            $expected = '<img src="/img/goodbye.gif" class="x_class"';
            $this->tester->testFieldParameter('image', $options, $expected, true);
        });
    }