/** * Test add object exception * * @expectedException \PhpOffice\PhpWord\Exception\InvalidObjectException */ public function testAddObjectException() { $source = __DIR__ . "/_files/xsl/passthrough.xsl"; $section = new Section(0); $section->addObject($source); }