PhpOffice\PhpPresentation\Tests\Writer\PowerPoint2007\SlideTest::testRichTextShadow PHP Method

testRichTextShadow() public method

public testRichTextShadow ( )
    public function testRichTextShadow()
    {
        $oPhpPresentation = new PhpPresentation();
        $oSlide = $oPhpPresentation->getActiveSlide();
        $oRichText = $oSlide->createRichTextShape();
        $oRichText->createTextRun('AAA');
        $oRichText->getShadow()->setVisible(true)->setAlpha(75)->setBlurRadius(2)->setDirection(45);
        $pres = TestHelperDOCX::getDocument($oPhpPresentation, 'PowerPoint2007');
        $element = '/p:sld/p:cSld/p:spTree/p:sp/p:spPr/a:effectLst/a:outerShdw';
        $this->assertTrue($pres->elementExists($element, 'ppt/slides/slide1.xml'));
    }