mirror of
https://github.com/silverstripe/silverstripe-behat-extension
synced 2024-10-22 17:05:32 +02:00
Calling destructor on fatal errors
Avoids leaving TESTS_RUNNING.js around
This commit is contained in:
parent
0308dee0dc
commit
0be032261a
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user