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

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

Tests image with setDefault and element not present
С версии: 2014-09-05
Автор: Nikolaos Dimopoulos ([email protected])
    public function testImageWithSetDefaultElementNotPresent()
    {
        $this->specify("image with setDefault and element not present 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, 'setDefault');
        });
        $this->specify("image with setDefault and element not present 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, true, 'setDefault');
        });
    }