/** * @expectedException \Exception * @expectedExceptionMessage The $parentWriter is not an instance of \PhpOffice\PhpPresentation\Writer\PowerPoint2007 */ public function testWriterException() { $oContentTypes = new ContentTypes(); $oContentTypes->setParentWriter(new ODPresentation()); $oContentTypes->writeContentTypes(new PhpPresentation()); }