Set use disk caching where possible?
public setUseDiskCaching ( boolean $pValue = false, string $pDirectory = null ) : |
||
$pValue | boolean | |
$pDirectory | string | Disk caching directory |
return |
public function testXMLWriterWithDiskCaching() { $oPowerPoint2007 = new PowerPoint2007(); $oPowerPoint2007->setUseDiskCaching(true); $oRels = new Rels(); $oRels->setParentWriter($oPowerPoint2007); $this->assertNotEmpty(\PHPUnit_Framework_Assert::readAttribute($this->runProtectedMethod($oRels, 'getXMLWriter'), 'tempFileName')); }
/** * Test set/get disk caching exception * * @expectedException Exception */ public function testSetUseDiskCachingException() { $object = new PowerPoint2007(new PhpPresentation()); $object->setUseDiskCaching(true, 'foo'); }