public function testFillGradientLinearRichText()
{
$oPhpPresentation = new PhpPresentation();
$oSlide = $oPhpPresentation->getActiveSlide();
$oShape = $oSlide->createRichTextShape();
$oShape->getFill()->setFillType(Fill::FILL_GRADIENT_LINEAR)->setStartColor(new Color('FFFF7700'))->setEndColor(new Color('FFFFFFFF'));
$pres = TestHelperDOCX::getDocument($oPhpPresentation, 'ODPresentation');
$element = '/office:document-styles/office:styles/draw:gradient';
$this->assertEquals('gradient_' . $oShape->getFill()->getHashCode(), $pres->getElementAttribute($element, 'draw:name', 'styles.xml'));
$element = '/office:document-content/office:automatic-styles/style:style[@style:name=\'gr1\']/style:graphic-properties';
$this->assertTrue($pres->elementExists($element, 'content.xml'));
$this->assertEquals('gradient', $pres->getElementAttribute($element, 'draw:fill', 'content.xml'));
$this->assertEquals('gradient_' . $oShape->getFill()->getHashCode(), $pres->getElementAttribute($element, 'draw:fill-gradient-name', 'content.xml'));
}