PopTest\Form\ElementTest::testSetAndGetLabelAttributes PHP Метод

testSetAndGetLabelAttributes() публичный Метод

    public function testSetAndGetLabelAttributes()
    {
        $e = new Element('text', 'email');
        $e->setLabel('Email:');
        $e->setLabelAttributes(array('class' => 'label-class'));
        $attribs = $e->getLabelAttributes();
        $this->assertEquals('label-class', $attribs['class']);
    }