Phalcon\Test\Unit\Tag\TagUrlFieldTest::testUrlFieldStringParameter PHP Method

testUrlFieldStringParameter() public method

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