public function testListWithRichText() { $phpPresentation = new PhpPresentation(); $oSlide = $phpPresentation->getActiveSlide(); $oRichText = $oSlide->createRichTextShape(); $oRichText->getActiveParagraph()->getBulletStyle()->setBulletType(Bullet::TYPE_BULLET); $oRun = $oRichText->createTextRun('Alpha'); $oRun->getHyperlink()->setUrl('http://www.google.fr'); $oRichText->createBreak(); $oRichText->createTextRun('Beta'); $pres = TestHelperDOCX::getDocument($phpPresentation, 'ODPresentation'); $element = '/office:document-content/office:body/office:presentation/draw:page/draw:frame/draw:text-box/text:list/text:list-item/text:p/text:span/text:a'; $this->assertTrue($pres->elementExists($element, 'content.xml')); $element = '/office:document-content/office:body/office:presentation/draw:page/draw:frame/draw:text-box/text:list/text:list-item/text:p/text:span/text:line-break'; $this->assertTrue($pres->elementExists($element, 'content.xml')); }