/** * @expectedException \RuntimeException */ public function testSetData2Exception() { $exporter = new DataExporter(); $exporter->setOptions('csv'); $exporter->setData(array()); }