PhpOffice\PhpPresentation\Tests\Writer\PowerPoint2007\PptMediaTest::testDrawingZip PHP Метод

testDrawingZip() публичный Метод

public testDrawingZip ( )
    public function testDrawingZip()
    {
        $oPhpPresentation = new PhpPresentation();
        $oSlide = $oPhpPresentation->getActiveSlide();
        $oDrawing = new Drawing\ZipFile();
        $oDrawing->setPath('zip://' . PHPPRESENTATION_TESTS_BASE_DIR . DIRECTORY_SEPARATOR . 'resources' . DIRECTORY_SEPARATOR . 'files' . DIRECTORY_SEPARATOR . 'Sample_01_Simple.pptx#ppt/media/phppowerpoint_logo1.gif', false);
        $oSlide->addShape($oDrawing);
        $oXMLDoc = TestHelperDOCX::getDocument($oPhpPresentation, 'PowerPoint2007');
        $this->assertTrue($oXMLDoc->fileExists('ppt/media/' . $oDrawing->getIndexedFilename()));
    }