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

testImageWithDisplayTo() public méthode

Tests image with displayTo
Since: 2014-09-05
Author: Nikolaos Dimopoulos ([email protected])
    public function testImageWithDisplayTo()
    {
        $this->specify("image with displayTo 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, 'displayTo');
        });
        $this->specify("image with displayTo 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, 'displayTo');
        });
    }