assertInstanceOf('PhpOffice\\PhpWord\\Element\\Title', $oTitle); $this->assertEquals($oTitle->getText(), 'text'); } /** * Get style null */ public function testStyleNull() { $oTitle = new Title('text'); $this->assertEquals($oTitle->getStyle(), null); } }