Exemplo n.º 1
0
 /**
  * Get font style
  */
 public function testFont()
 {
     $oCheckBox = new CheckBox(htmlspecialchars('chkBox', ENT_COMPAT, 'UTF-8'), htmlspecialchars('CheckBox', ENT_COMPAT, 'UTF-8'), 'fontStyle');
     $this->assertEquals('fontStyle', $oCheckBox->getFontStyle());
     $oCheckBox->setFontStyle(array('bold' => true, 'italic' => true, 'size' => 16));
     $this->assertInstanceOf('PhpOffice\\PhpWord\\Style\\Font', $oCheckBox->getFontStyle());
 }
Exemplo n.º 2
0
 /**
  * Get font style
  */
 public function testFont()
 {
     $oCheckBox = new CheckBox('chkBox', 'CheckBox', 'fontStyle');
     $this->assertEquals($oCheckBox->getFontStyle(), 'fontStyle');
     $oCheckBox->setFontStyle(array('bold' => true, 'italic' => true, 'size' => 16));
     $this->assertInstanceOf('PhpOffice\\PhpWord\\Style\\Font', $oCheckBox->getFontStyle());
 }