PhpOffice\PhpPresentation\Tests\Writer\ODPresentation\MetaInfManifestTest::testDrawingZip PHP Метод

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

public testDrawingZip ( )
    public function testDrawingZip()
    {
        $oPhpPresentation = new PhpPresentation();
        $oSlide = $oPhpPresentation->getActiveSlide();
        $oShape = new Drawing\ZipFile();
        $oShape->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($oShape);
        $pres = TestHelperDOCX::getDocument($oPhpPresentation, 'ODPresentation');
        $element = '/manifest:manifest/manifest:file-entry[5]';
        $this->assertTrue($pres->elementExists($element, 'META-INF/manifest.xml'));
        $this->assertEquals('Pictures/' . $oShape->getIndexedFilename(), $pres->getElementAttribute($element, 'manifest:full-path', 'META-INF/manifest.xml'));
    }