public function testFeatureThumbnail()
{
$imagePath = PHPPRESENTATION_TESTS_BASE_DIR . DIRECTORY_SEPARATOR . 'resources' . DIRECTORY_SEPARATOR . 'images' . DIRECTORY_SEPARATOR . 'PhpPresentationLogo.png';
$xPathManifest = '/Relationships/Relationship[@Target=\'docProps/thumbnail.jpeg\'][@Type=\'http://schemas.openxmlformats.org/package/2006/relationships/metadata/thumbnail\']';
$oPhpPresentation = new PhpPresentation();
$oXMLDoc = TestHelperDOCX::getDocument($oPhpPresentation, 'PowerPoint2007');
$this->assertTrue($oXMLDoc->fileExists('_rels/.rels'));
$this->assertFalse($oXMLDoc->elementExists($xPathManifest, '_rels/.rels'));
$oPhpPresentation->getPresentationProperties()->setThumbnailPath($imagePath);
$oXMLDoc = TestHelperDOCX::getDocument($oPhpPresentation, 'PowerPoint2007');
$this->assertTrue($oXMLDoc->fileExists('_rels/.rels'));
$this->assertTrue($oXMLDoc->elementExists($xPathManifest, '_rels/.rels'));
}