예제 #1
0
 /**
  * Add image
  */
 public function testAddImage()
 {
     $src = __DIR__ . '/../_files/images/earth.jpg';
     $oListItemRun = new ListItemRun();
     $element = $oListItemRun->addImage($src);
     $this->assertInstanceOf('PhpOffice\\PhpWord\\Element\\Image', $element);
     $this->assertCount(1, $oListItemRun->getElements());
 }