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