protected function tearDown() { parent::tearDown(); if ($this->functionTest) { $this->dropFunctions(); $this->functionTest = false; } $this->db->restoreFlags(IDatabase::RESTORE_INITIAL); }