Phalcon\Test\Unit\Tag\TagDateFieldTest::testDateFieldArrayParameterWithId PHP Метод

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

Tests dateField with array as a parameters and id in it
С версии: 2014-09-05
Автор: Nikolaos Dimopoulos ([email protected])
    public function testDateFieldArrayParameterWithId()
    {
        $this->specify("dateField with array parameter with id returns invalid HTML Strict", function () {
            $options = ['x_name', 'id' => 'x_id', 'class' => 'x_class', 'size' => '10'];
            $expected = '<input type="date" id="x_id" name="x_name" ' . 'class="x_class" size="10"';
            $this->tester->testFieldParameter('dateField', $options, $expected, true);
        });
        $this->specify("dateField with array parameter with id returns invalid HTML XHTML", function () {
            $options = ['x_name', 'id' => 'x_id', 'class' => 'x_class', 'size' => '10'];
            $expected = '<input type="date" id="x_id" name="x_name" ' . 'class="x_class" size="10"';
            $this->tester->testFieldParameter('dateField', $options, $expected, true);
        });
    }