Skip to content

Commit f66853a

Browse files
committed
#168 : PHPUnit fixes
1 parent 9004abf commit f66853a

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/PhpPresentation/Writer/ODPresentation/Manifest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ private function getImageMimeType($pFile = '')
170170
} else {
171171
$image = getimagesizefromstring($oArchive->getFromName($pImgFile));
172172
}
173-
} elseif(strpos($pFile, 'data:image/') === 0) {
173+
} elseif (strpos($pFile, 'data:image/') === 0) {
174174
$sImage = $pFile;
175175
list(, $sImage) = explode(';', $sImage);
176176
list(, $sImage) = explode(',', $sImage);

src/PhpPresentation/Writer/PowerPoint2007/ContentTypes.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ private function getImageMimeType($pFile = '')
190190
} else {
191191
$image = getimagesizefromstring($oArchive->getFromName($pImgFile));
192192
}
193-
} elseif(strpos($pFile, 'data:image/') === 0) {
193+
} elseif (strpos($pFile, 'data:image/') === 0) {
194194
$sImage = $pFile;
195195
list(, $sImage) = explode(';', $sImage);
196196
list(, $sImage) = explode(',', $sImage);

tests/PhpPresentation/Tests/Writer/ODPresentation/ManifestTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ public function testDrawingZip()
9292
$pres = TestHelperDOCX::getDocument($oPhpPresentation, 'ODPresentation');
9393
$element = '/manifest:manifest/manifest:file-entry[5]';
9494
$this->assertTrue($pres->elementExists($element, 'META-INF/manifest.xml'));
95-
$this->assertEquals('Pictures/44ea6e2fb64a317703f98a57a9e0d9a9.gif', $pres->getElementAttribute($element, 'manifest:full-path', 'META-INF/manifest.xml'));
95+
$this->assertEquals('Pictures/'.md5($oShape->getPath()) . '.' . $oShape->getExtension(), $pres->getElementAttribute($element, 'manifest:full-path', 'META-INF/manifest.xml'));
9696
}
9797

9898
/**

0 commit comments

Comments
 (0)