protected function tearDown()
{
global $DB;
// Cleanup log directory
foreach (glob(GLPI_LOG_DIR . '/*.log') as $file) {
unlink($file);
}
// Need Innodb -- $DB->rollback() -- workaround:
foreach ($DB->objcreated as $table => $ids) {
foreach ($ids as $id) {
$DB->query($q = "DELETE FROM `{$table}` WHERE `id`={$id}");
}
}
unset($DB->objcreated);
}