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

testImageWithSetDefaultElementNotPresent() public méthode

Tests image with setDefault and element not present
Since: 2014-09-05
Author: 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');
        });
    }