Deletes created files, database tables, and reverts all environment changes.
This method needs to be invoked for both unit and integration tests.
Overrides TestBase::tearDown
TestBase::prepareDatabasePrefix()
TestBase::changeDatabasePrefix()
TestBase::prepareEnvironment()
protected function tearDown() {
global $conf;
if (isset($this->originalKeyValue)) {
$conf['keyvalue_default'] = $this->originalKeyValue;
}
else {
unset($conf['keyvalue_default']);
}
parent::tearDown();
}