assertZipFileExists('docProps/custom.xml'); $this->assertZipXmlElementNotExists('docProps/custom.xml', '/Properties/property[@name="_MarkAsFinal"]'); } public function testMarkAsFinalTrue() { $this->oPresentation->getPresentationProperties()->markAsFinal(true); $this->assertZipXmlElementExists('docProps/custom.xml', '/Properties'); $this->assertZipXmlElementExists('docProps/custom.xml', '/Properties/property'); $this->assertZipXmlElementExists('docProps/custom.xml', '/Properties/property[@pid="2"][@fmtid="{D5CDD505-2E9C-101B-9397-08002B2CF9AE}"][@name="_MarkAsFinal"]'); $this->assertZipXmlElementExists('docProps/custom.xml', '/Properties/property[@pid="2"][@fmtid="{D5CDD505-2E9C-101B-9397-08002B2CF9AE}"][@name="_MarkAsFinal"]/vt:bool'); } public function testMarkAsFinalFalse() { $this->oPresentation->getPresentationProperties()->markAsFinal(false); $this->assertZipXmlElementNotExists('docProps/custom.xml', '/Properties/property[@name="_MarkAsFinal"]'); } }