tearDown() 공개 메소드

Tear down
public tearDown ( )
예제 #1
0
파일: MongoDBTest.php 프로젝트: imbo/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();
 }
예제 #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('imboIntegrationTestDatabase')->drop();
     }
     parent::tearDown();
 }
예제 #3
0
파일: DoctrineTest.php 프로젝트: imbo/imbo
 public function tearDown()
 {
     if ($this->pdo instanceof PDO) {
         $this->pdo->query("DROP TABLE IF EXISTS imageinfo");
         $this->pdo->query("DROP TABLE IF EXISTS metadata");
         $this->pdo->query("DROP TABLE IF EXISTS shorturl");
         $this->pdo->query("DROP INDEX IF EXISTS shorturlparams");
     }
     $this->pdo = null;
     parent::tearDown();
 }