/** * @expectedException AmCharts\Chart\Exception\InvalidArgumentException */ public function testSetLabelTextThatNotContainsTitleTag() { $this->legend->setLabelText('foo'); }