Exemplo n.º 1
0
 public function testExportGeoToFile()
 {
     $file = FileDataManager::getBackupPath('encoded_locations.tmp');
     if (file_exists($file)) {
         unlink($file);
     }
     $this->assertFalse(file_exists($file));
     $this->dao->exportGeoToFile($file);
     $this->assertTrue(file_exists($file));
 }
Exemplo n.º 2
0
 public function testExportGeoToFile()
 {
     $file = THINKUP_WEBAPP_PATH . BackupDAO::CACHE_DIR . '/encoded_locations.tmp';
     if (file_exists($file)) {
         unlink($file);
     }
     $this->assertFalse(file_exists($file));
     $this->dao->exportGeoToFile($file);
     $this->assertTrue(file_exists($file));
 }