public function shutdown()
{
// get the roles table, if we have one
$rolesTable = $this->getTable();
if (!$rolesTable) {
return;
}
// remove any empty test environments
foreach ($rolesTable as $testEnv => $roles) {
if (count(get_object_vars($roles)) == 0) {
unset($rolesTable->{$testEnv});
}
}
// cleanup the tables
$this->removeTablesIfEmpty();
// save the runtimeConfig
$this->st->saveRuntimeConfig();
}