Beispiel #1
0
 /**
  * Add check box
  */
 public function testAddCheckBox()
 {
     $oCell = new Cell('section', 1);
     $element = $oCell->addCheckBox(utf8_decode('ééé'), utf8_decode('ééé'));
     $this->assertCount(1, $oCell->getElements());
     $this->assertInstanceOf('PhpOffice\\PhpWord\\Element\\CheckBox', $element);
 }
Beispiel #2
0
 /**
  * Add check box
  */
 public function testAddCheckBox()
 {
     $oCell = new Cell();
     $element = $oCell->addCheckBox(utf8_decode(htmlspecialchars('ééé', ENT_COMPAT, 'UTF-8')), utf8_decode(htmlspecialchars('ééé', ENT_COMPAT, 'UTF-8')));
     $this->assertCount(1, $oCell->getElements());
     $this->assertInstanceOf('PhpOffice\\PhpWord\\Element\\CheckBox', $element);
 }