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

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

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