Skip to content

Commit 92588cc

Browse files
committed
Fix variable for MediaTest
1 parent 7a42431 commit 92588cc

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

tests/PhpWord/Tests/MediaTest.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ public function testAddSectionMediaElement()
6868
$local = __DIR__ . "/_files/images/mars.jpg";
6969
$object = __DIR__ . "/_files/documents/sheet.xls";
7070
$remote = 'http://php.net/images/logos/php-med-trans-light.gif';
71-
Media::addSectionMediaElement($local, 'image');
72-
Media::addSectionMediaElement($local, 'image');
71+
Media::addSectionMediaElement($local, 'image', new Image($local));
72+
Media::addSectionMediaElement($local, 'image', new Image($local));
7373
Media::addSectionMediaElement($remote, 'image', new Image($remote));
7474
Media::addSectionMediaElement($object, 'oleObject');
7575
Media::addSectionMediaElement($object, 'oleObject');
@@ -97,8 +97,8 @@ public function testAddHeaderMediaElement()
9797
{
9898
$local = __DIR__ . "/_files/images/mars.jpg";
9999
$remote = 'http://php.net/images/logos/php-med-trans-light.gif';
100-
Media::addHeaderMediaElement(1, $local);
101-
Media::addHeaderMediaElement(1, $local);
100+
Media::addHeaderMediaElement(1, $local, new Image($local));
101+
Media::addHeaderMediaElement(1, $local, new Image($local));
102102
Media::addHeaderMediaElement(1, $remote, new Image($remote));
103103

104104
$this->assertEquals(2, Media::countHeaderMediaElements('header1'));
@@ -111,8 +111,8 @@ public function testAddFooterMediaElement()
111111
{
112112
$local = __DIR__ . "/_files/images/mars.jpg";
113113
$remote = 'http://php.net/images/logos/php-med-trans-light.gif';
114-
Media::addFooterMediaElement(1, $local);
115-
Media::addFooterMediaElement(1, $local);
114+
Media::addFooterMediaElement(1, $local, new Image($local));
115+
Media::addFooterMediaElement(1, $local, new Image($local));
116116
Media::addFooterMediaElement(1, $remote, new Image($remote));
117117

118118
$this->assertEquals(2, Media::countFooterMediaElements('footer1'));

0 commit comments

Comments
 (0)