Пример #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();
 }
Пример #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();
 }