Phalcon\Test\Unit\Tag\TagImageInputTest::testImageInputWithSetDefault PHP Method

testImageInputWithSetDefault() public method

Tests imageInput with setDefault
Since: 2014-09-05
Author: Nikolaos Dimopoulos ([email protected])
    public function testImageInputWithSetDefault()
    {
        $this->specify("imageInput with setDefault returns invalid HTML Strict", function () {
            $options = ['x_name', 'name' => 'x_other', 'class' => 'x_class', 'size' => '10'];
            $expected = '<input type="image" name="x_other" ' . 'value="x_name" class="x_class" size="10"';
            $this->tester->testFieldParameter('imageInput', $options, $expected, false, 'setDefault');
        });
        $this->specify("imageInput with setDefault returns invalid HTML XHTML", function () {
            $options = ['x_name', 'name' => 'x_other', 'class' => 'x_class', 'size' => '10'];
            $expected = '<input type="image" name="x_other" ' . 'value="x_name" class="x_class" size="10"';
            $this->tester->testFieldParameter('imageInput', $options, $expected, true, 'setDefault');
        });
    }