コード例 #1
0
ファイル: CellTest.php プロジェクト: kaantunc/MYK-BOR
 /**
  * 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);
 }
コード例 #2
0
ファイル: CellTest.php プロジェクト: brunodebarros/phpword
 /**
  * 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);
 }