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

testDrawingShapeShadow() public method

    public function testDrawingShapeShadow()
    {
        $oPhpPresentation = new PhpPresentation();
        $oSlide = $oPhpPresentation->getActiveSlide();
        $oShape = $oSlide->createDrawingShape();
        $oShape->setPath(PHPPRESENTATION_TESTS_BASE_DIR . '/resources/images/PhpPresentationLogo.png');
        $oShape->getShadow()->setVisible(true)->setDirection(45)->setDistance(10);
        $pres = TestHelperDOCX::getDocument($oPhpPresentation, 'PowerPoint2007');
        $element = '/p:sld/p:cSld/p:spTree/p:pic/p:spPr/a:effectLst/a:outerShdw';
        $this->assertTrue($pres->elementExists($element, 'ppt/slides/slide1.xml'));
    }