Calling destructor on fatal errors

Avoids leaving TESTS_RUNNING.js around
This commit is contained in:
Ingo Schommer 2014-02-09 18:56:40 +13:00
parent 0308dee0dc
commit 0be032261a

View File

@ -78,6 +78,8 @@ class SilverStripeAwareInitializer implements InitializerInterface
$this->testSessionEnvironment = $testEnv;
file_put_contents('php://stdout', "Temp Database: $this->databaseName" . PHP_EOL . PHP_EOL);
register_shutdown_function(array($this, '__destruct'));
}
public function __destruct()