Phalcon\Test\Unit\Forms\Element\TextTest::testPrepareAttributesNoDefault PHP Method

testPrepareAttributesNoDefault() public method

    public function testPrepareAttributesNoDefault()
    {
        $this->specify("Prepared attributes are not properly rendered", function () {
            $element1 = new Text("name");
            $element1->setLabel("name");
            $actual = $element1->prepareAttributes(["class" => "big-input"]);
            $expected = ["name", "class" => "big-input"];
            expect($actual)->equals($expected);
        });
    }