Example #1
0
 public function resetSQLite()
 {
     $strProjectSQLitePath = "project/dbdumps/";
     echo "\n\n\nLooking for Selenium SQLite file in " . $strProjectSQLitePath;
     if (file_exists(_realpath_ . "/" . $strProjectSQLitePath . "seleniumtest.db3")) {
         echo "\n\nseleniumtest.db3 found. I will rename it to seleniumtest.selbck-" . $this->strTimestamp;
         $objFilesystem = new class_filesystem();
         $objFilesystem->fileRename($strProjectSQLitePath . "seleniumtest.db3", $strProjectSQLitePath . "seleniumtest.selbck-" . $this->strTimestamp, true);
     } else {
         echo "\n\nNo seleniumtest.db3 in project folder found.";
     }
 }