public function testFeatureThumbnail()
{
$imagePath = PHPPRESENTATION_TESTS_BASE_DIR . DIRECTORY_SEPARATOR . 'resources' . DIRECTORY_SEPARATOR . 'images' . DIRECTORY_SEPARATOR . 'PhpPresentationLogo.png';
$xPathManifest = '/manifest:manifest/manifest:file-entry[@manifest:media-type=\'image/png\'][@manifest:full-path=\'Thumbnails/thumbnail.png\']';
$oPhpPresentation = new PhpPresentation();
$oXMLDoc = TestHelperDOCX::getDocument($oPhpPresentation, 'ODPresentation');
$this->assertFalse($oXMLDoc->fileExists('Thumbnails/thumbnail.png'));
$this->assertTrue($oXMLDoc->fileExists('META-INF/manifest.xml'));
$this->assertFalse($oXMLDoc->elementExists($xPathManifest, 'META-INF/manifest.xml'));
$oPhpPresentation->getPresentationProperties()->setThumbnailPath($imagePath);
$oXMLDoc = TestHelperDOCX::getDocument($oPhpPresentation, 'ODPresentation');
$this->assertTrue($oXMLDoc->fileExists('Thumbnails/thumbnail.png'));
$this->assertTrue($oXMLDoc->fileExists('META-INF/manifest.xml'));
$this->assertTrue($oXMLDoc->elementExists($xPathManifest, 'META-INF/manifest.xml'));
}