Phalcon\Test\Unit\Tag\TagPasswordFieldTest::testPasswordFieldStringParameter PHP Method

testPasswordFieldStringParameter() public method

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