/** * 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); }