Redaxscript\Tests\Html\FormTest::testLabel PHP Method

testLabel() public method

testLabel
Since: 2.6.0
public testLabel ( string $text = null, array $attributeArray = [], string $expect = null )
$text string
$attributeArray array
$expect string
    public function testLabel($text = null, $attributeArray = [], $expect = null)
    {
        /* setup */
        $form = new Html\Form($this->_registry, $this->_language);
        $form->init();
        $form->label($text, $attributeArray);
        /* actual */
        $actual = $form;
        /* compare */
        $this->assertEquals($expect, $actual);
    }