public function testRichTextHyperlink() { $oPhpPresentation = new PhpPresentation(); $oSlide = $oPhpPresentation->getActiveSlide(); $oRichText = $oSlide->createRichTextShape(); $oRichText->getHyperLink()->setUrl('http://www.google.fr'); $pres = TestHelperDOCX::getDocument($oPhpPresentation, 'PowerPoint2007'); $element = '/p:sld/p:cSld/p:spTree/p:sp//a:hlinkClick'; $this->assertTrue($pres->elementExists($element, 'ppt/slides/slide1.xml')); }