Beispiel #1
0
 /**
  * Add link element
  */
 public function testAddLink()
 {
     $oFootnote = new Footnote();
     $element = $oFootnote->addLink('http://www.google.fr');
     $this->assertCount(1, $oFootnote->getElements());
     $this->assertInstanceOf('PhpOffice\\PhpWord\\Element\\Link', $element);
 }
Beispiel #2
0
 /**
  * Add link element
  */
 public function testAddLink()
 {
     $oFootnote = new Footnote();
     $element = $oFootnote->addLink('https://github.com/PHPOffice/PHPWord');
     $this->assertCount(1, $oFootnote->getElements());
     $this->assertInstanceOf('PhpOffice\\PhpWord\\Element\\Link', $element);
 }