Set use disk caching where possible?
public setUseDiskCaching ( boolean $pValue = false, string $pDirectory = null ) : |
||
$pValue | boolean | |
$pDirectory | string | Disk caching directory |
Результат |
public function testXMLWriterWithDiskCaching() { $oODPresentation = new ODPresentation(); $oODPresentation->setUseDiskCaching(true); $oManifest = new Manifest(); $oManifest->setParentWriter($oODPresentation); $this->assertNotEmpty(\PHPUnit_Framework_Assert::readAttribute($this->runProtectedMethod($oManifest, 'getXMLWriter'), 'tempFileName')); }
/** * Test set/get disk caching exception * * @expectedException Exception */ public function testSetUseDiskCachingException() { $object = new ODPresentation(new PhpPresentation()); $object->setUseDiskCaching(true, 'foo'); }