Beispiel #1
0
 public function setUp()
 {
     if (file_exists(self::$tempDir)) {
         Utilities::deleteDirectory(self::$tempDir);
     }
     mkdir(self::$tempDir);
 }
Beispiel #2
0
 public function drop()
 {
     $tables = $this->listTables();
     foreach ($tables as $table) {
         $this->dropTable($table);
     }
     if ($this->sequencesFile->exists()) {
         $this->sequencesFile->drop();
     }
     if ($this->name !== 'public') {
         Utilities::deleteDirectory($this->path);
     }
 }