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

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

public testDrawing ( )
    public function testDrawing()
    {
        $oPhpPresentation = new PhpPresentation();
        $oSlide = $oPhpPresentation->getActiveSlide();
        $oShape = $oSlide->createDrawingShape();
        $oShape->setPath(PHPPRESENTATION_TESTS_BASE_DIR . '/resources/images/PhpPresentationLogo.png');
        $pres = TestHelperDOCX::getDocument($oPhpPresentation, 'ODPresentation');
        $element = '/manifest:manifest/manifest:file-entry[5]';
        $this->assertTrue($pres->elementExists($element, 'META-INF/manifest.xml'));
        $this->assertStringStartsWith('Pictures/PhpPresentationLogo', $pres->getElementAttribute($element, 'manifest:full-path', 'META-INF/manifest.xml'));
        $this->assertStringEndsWith('.png', $pres->getElementAttribute($element, 'manifest:full-path', 'META-INF/manifest.xml'));
    }