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