示例#1
0
 /**
  * Add image by URL
  */
 public function testAddImageByUrl()
 {
     $oFooter = new Footer(1);
     $element = $oFooter->addImage('http://php.net/images/logos/php-med-trans-light.gif');
     $this->assertCount(1, $oFooter->getElements());
     $this->assertInstanceOf('PhpOffice\\PhpWord\\Element\\Image', $element);
 }