Inheritance: extends AbstractWriter, implements PhpOffice\PhpPresentation\Writer\WriterInterface
 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');
 }
 /**
  * Test LayoutPack
  * @deprecated 0.7
  */
 public function testLayoutPack()
 {
     $oLayoutPack = $this->getMock('PhpOffice\\PhpPresentation\\Writer\\PowerPoint2007\\LayoutPack\\AbstractLayoutPack');
     $object = new PowerPoint2007();
     $this->assertInstanceOf("PhpOffice\\PhpPresentation\\Writer\\PowerPoint2007\\LayoutPack\\AbstractLayoutPack", $object->getLayoutPack());
     $this->assertInstanceOf("PhpOffice\\PhpPresentation\\Writer\\PowerPoint2007", $object->setLayoutPack());
     $this->assertNull($object->getLayoutPack());
     $this->assertInstanceOf("PhpOffice\\PhpPresentation\\Writer\\PowerPoint2007", $object->setLayoutPack($oLayoutPack));
     $this->assertInstanceOf("PhpOffice\\PhpPresentation\\Writer\\PowerPoint2007\\LayoutPack\\AbstractLayoutPack", $object->getLayoutPack());
 }