public function testRemoveUploadedIfcModel()
 {
     $bobimmodel = new bobimmodel_impl();
     //init dependancies
     $sovfs = new sovfs_impl($this->vfsFileName, null, $this->vfsSubModule);
     $vls_db_id = $sovfs->retrieveVfsFileId();
     $sobimmodel = new sobimmodel_impl($this->db);
     $sobimmodel->setModelName($this->modelName);
     $sobimmodel->setVfsdatabaseid($vls_db_id);
     $bobimmodel->setVfsObject($sovfs);
     $bobimmodel->setSobimmodel($sobimmodel);
     $this->assertTrue($bobimmodel->removeIfcModel());
 }
 private function createDummyVfsFile()
 {
     $currentDirectory = dirname(__FILE__);
     $fileNameWithPath = $currentDirectory . DIRECTORY_SEPARATOR . $this->vfsFileName;
     $fileHandle = fopen($fileNameWithPath, 'w') or die("Can't open file");
     $result = fwrite($fileHandle, $this->vfsFileContents);
     fclose($fileHandle);
     $sovfs = new sovfs_impl();
     //$sovfs->debug = true;
     $sovfs->setFilename($this->vfsFileName);
     $sovfs->setFileNameWithFullPath($fileNameWithPath);
     $sovfs->setSubModule($this->vfsSubModule);
     try {
         $sovfs->addFileToVfs();
     } catch (FileExistsException $e) {
         echo "File already exists\n";
     }
     $this->vfsFileId = $sovfs->retrieveVfsFileId();
     unlink($fileNameWithPath);
 }