Phalcon\Test\Unit\Tag\TagTimeFieldTest::testTimeFieldArrayParameterWithId PHP Метод

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

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