/**
* Test create new instance
*/
public function testConstruct()
{
$objectPrefix = 'PhpOffice\\PhpPresentation\\Writer\\PowerPoint2007\\';
$parts = array('contenttypes' => 'ContentTypes', 'docprops' => 'DocProps', 'rels' => 'Rels', 'theme' => 'Theme', 'presentation' => 'Presentation', 'slide' => 'Slide', 'drawing' => 'Drawing', 'chart' => 'Chart');
$oPhpPresentation = new PhpPresentation();
$object = new PowerPoint2007($oPhpPresentation);
$this->assertInstanceOf('PhpOffice\\PhpPresentation\\PhpPresentation', $object->getPhpPresentation());
$this->assertEquals('./', $object->getDiskCachingDirectory());
$this->assertInstanceOf("{$objectPrefix}LayoutPack\\PackDefault", $object->getLayoutPack());
foreach ($parts as $partName => $objectName) {
$this->assertInstanceOf($objectPrefix . $objectName, $object->getWriterPart($partName));
}
$this->assertInstanceOf('PhpOffice\\PhpPresentation\\HashTable', $object->getDrawingHashTable());
}