legend() public method

append the legend
Since: 3.0.0
public legend ( string $html = null, array $attributeArray = [] ) : Form
$html string html of the legend
$attributeArray array attributes of the legend
return Form
 /**
  * testLegend
  *
  * @param string $text
  * @param array $attributeArray
  * @param array $expect
  *
  * @dataProvider providerLegend
  *
  * @since 2.6.0
  */
 public function testLegend($text = null, $attributeArray = array(), $expect = array())
 {
     /* setup */
     $form = new Html\Form($this->_registry, $this->_language);
     $form->init();
     $form->legend($text, $attributeArray);
     /* actual */
     $actual = $form;
     /* compare */
     $this->assertEquals($expect, $actual);
 }