Inheritance: extends PHPUnit_Framework_TestCase
Example #1
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();
 }
Example #2
0
 /**
  * Drop the test database after each test
  */
 public function tearDown()
 {
     if (class_exists('MongoClient')) {
         $client = new MongoClient();
         $client->selectDB('imboIntegrationTestDatabase')->drop();
     }
     parent::tearDown();
 }
Example #3
0
 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();
 }