Skip to content

Commit 4edf8ed

Browse files
committed
Fix unit tests
1 parent f9123d2 commit 4edf8ed

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

tests/PhpWord/Tests/Element/CellTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ public function testAddImageSectionByUrl()
168168
{
169169
$oCell = new Cell();
170170
$element = $oCell->addImage(
171-
'https://assets.mozillalabs.com/Brands-Logos/Thunderbird/logo-only/thunderbird_logo-only_RGB.png'
171+
'http://php.net/images/logos/php-med-trans-light.gif'
172172
);
173173

174174
$this->assertCount(1, $oCell->getElements());

tests/PhpWord/Tests/Element/FooterTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ public function testAddImageByUrl()
119119
{
120120
$oFooter = new Footer(1);
121121
$element = $oFooter->addImage(
122-
'https://assets.mozillalabs.com/Brands-Logos/Thunderbird/logo-only/thunderbird_logo-only_RGB.png'
122+
'http://php.net/images/logos/php-med-trans-light.gif'
123123
);
124124

125125
$this->assertCount(1, $oFooter->getElements());

tests/PhpWord/Tests/Element/HeaderTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ public function testAddImageByUrl()
128128
{
129129
$oHeader = new Header(1);
130130
$element = $oHeader->addImage(
131-
'https://assets.mozillalabs.com/Brands-Logos/Thunderbird/logo-only/thunderbird_logo-only_RGB.png'
131+
'http://php.net/images/logos/php-med-trans-light.gif'
132132
);
133133

134134
$this->assertCount(1, $oHeader->getElements());

tests/PhpWord/Tests/Writer/Word2007/PartTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* @copyright 2010-2014 PHPWord contributors
1515
* @license http://www.gnu.org/licenses/lgpl.txt LGPL version 3
1616
*/
17-
namespace PhpOffice\PhpWord\Tests\Writer\Word2007\Part;
17+
namespace PhpOffice\PhpWord\Tests\Writer\Word2007;
1818

1919
use PhpOffice\PhpWord\Writer\Word2007\Part\RelsPart;
2020

@@ -35,7 +35,7 @@ class PartTest extends \PHPUnit_Framework_TestCase
3535
public function testRelsWriteRelException()
3636
{
3737
$object = new RelsPart();
38-
$object->setMedia(array(array('foo' => 'bar')));
38+
$object->setMedia(array(array('type' => '', 'target' => '')));
3939
$object->write();
4040
}
4141
}

0 commit comments

Comments
 (0)