@@ -76,7 +76,7 @@ public function testAddElements()
7676 {
7777 $ objectSource = __DIR__ . "/../_files/documents/reader.docx " ;
7878 $ imageSource = __DIR__ . "/../_files/images/PhpWord.png " ;
79- $ imageUrl = 'http://php.net//images/logos/php-med-trans-light.gif ' ;
79+ // $imageUrl = 'http://php.net//images/logos/php-med-trans-light.gif';
8080
8181 $ section = new Section (0 );
8282 $ section ->setPhpWord (new PhpWord ());
@@ -98,10 +98,10 @@ public function testAddElements()
9898 $ elementTypes = array ('Text ' , 'Link ' , 'TextBreak ' , 'PageBreak ' ,
9999 'Table ' , 'ListItem ' , 'Object ' , 'Image ' ,
100100 'Title ' , 'TextRun ' , 'Footnote ' , 'CheckBox ' , 'TOC ' );
101- $ i = 0 ;
101+ $ elmCount = 0 ;
102102 foreach ($ elementTypes as $ elementType ) {
103- $ this ->assertInstanceOf ("PhpOffice \\PhpWord \\Element \\{$ elementType }" , $ elementCollection [$ i ]);
104- $ i ++;
103+ $ this ->assertInstanceOf ("PhpOffice \\PhpWord \\Element \\{$ elementType }" , $ elementCollection [$ elmCount ]);
104+ $ elmCount ++;
105105 }
106106 }
107107
@@ -166,6 +166,6 @@ public function testHasDifferentFirstPage()
166166 public function testAddHeaderException ()
167167 {
168168 $ object = new Section (1 );
169- $ header = $ object ->addHeader ('ODD ' );
169+ $ object ->addHeader ('ODD ' );
170170 }
171171}
0 commit comments