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

testPasswordFieldArrayParameter() public method

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