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); } /** * Get bookmark Id */ public function testBookmarkID() { $oTitle = new Title('text'); $iVal = rand(1, 1000); $oTitle->setBookmarkId($iVal); $this->assertEquals($oTitle->getRelationId(), $iVal); } }