Phalcon\Test\Unit\Tag\TagWeekFieldTest::testWeekFieldArrayParameterWithId PHP 메소드

testWeekFieldArrayParameterWithId() 공개 메소드

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