Example #1
0
 public function testUsesElementLegendWhenPresent()
 {
     $this->testLegendInitiallyNull();
     $element = new Form();
     $element->setLegend('this is a legend');
     $this->decorator->setElement($element);
     $this->assertEquals('this is a legend', $this->decorator->getLegend());
 }