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