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

testImageInputArrayParameterWithId() public method

Tests imageInput with array as a parameters and id in it
Since: 2014-09-05
Author: Nikolaos Dimopoulos ([email protected])
    public function testImageInputArrayParameterWithId()
    {
        $this->specify("imageInput with array parameter with id returns invalid HTML Strict", function () {
            $options = ['x_name', 'id' => 'x_id', 'class' => 'x_class', 'size' => '10'];
            $expected = '<input type="image" id="x_id" value="x_name" ' . 'class="x_class" size="10"';
            $this->tester->testFieldParameter('imageInput', $options, $expected, true);
        });
        $this->specify("imageInput with array parameter with id returns invalid HTML XHTML", function () {
            $options = ['x_name', 'id' => 'x_id', 'class' => 'x_class', 'size' => '10'];
            $expected = '<input type="image" id="x_id" value="x_name" ' . 'class="x_class" size="10"';
            $this->tester->testFieldParameter('imageInput', $options, $expected, true);
        });
    }