Esempio n. 1
0
 /**
  * Clean up after each run
  */
 public function tearDown()
 {
     if ($this->pdo) {
         $this->pdo->query('DROP TABLE IF EXISTS imagevariations');
         $this->pdo = null;
     }
     parent::tearDown();
 }
Esempio n. 2
0
 /**
  * Drop the test database after each test
  */
 public function tearDown()
 {
     if (class_exists('MongoClient')) {
         $client = new MongoClient();
         $client->selectDB($this->databaseName)->drop();
     }
     parent::tearDown();
 }