예제 #1
0
파일: DoctrineTest.php 프로젝트: imbo/imbo
 /**
  * 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
파일: MongoDBTest.php 프로젝트: ASP96/imbo
 /**
  * Drop the test database after each test
  */
 public function tearDown()
 {
     if (class_exists('MongoClient')) {
         $client = new MongoClient();
         $client->selectDB($this->databaseName)->drop();
     }
     parent::tearDown();
 }