/** * @expectedException \Exception * @expectedExceptionMessage Chart type has not been set. */ public function testTypeException() { $object = new PlotArea(); $object->getType(); }