public function testSetLabelText() { $this->assertCount(0, $this->legend->toArray()); $this->legend->setLabelText('[[title]]'); $this->assertEquals('[[title]]', $this->legend->getLabelText()); $this->assertCount(1, $this->legend->toArray()); }