/** * Clean up directory structure after each test */ public function tearDown() { if (is_dir($this->path)) { $this->rmdir($this->path); } parent::tearDown(); }
/** * Drop the test database after each test */ public function tearDown() { if (extension_loaded('mongo') && class_exists('MongoClient')) { $client = new MongoClient(); $client->selectDB($this->databaseName)->drop(); } parent::tearDown(); }
/** * Reset PDO instance after each test */ public function tearDown() { $this->pdo = null; parent::tearDown(); }