Phalcon\Test\Unit\Tag\TagTextFieldTest::testTextFieldStringParameter PHP Method

testTextFieldStringParameter() public method

Tests textField with string as a parameter
Since: 2014-09-05
Author: Nikolaos Dimopoulos ([email protected])
    public function testTextFieldStringParameter()
    {
        $this->specify("textField with string parameter returns invalid HTML Strict", function () {
            $options = 'x_name';
            $expected = '<input type="text" id="x_name" name="x_name"';
            $this->tester->testFieldParameter('textField', $options, $expected, false);
        });
        $this->specify("textField with string parameter returns invalid HTML XHTML", function () {
            $options = 'x_name';
            $expected = '<input type="text" id="x_name" name="x_name"';
            $this->tester->testFieldParameter('textField', $options, $expected, true);
        });
    }