mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
d8b106e6ee
When a unit test being run by PHPUnit encountered a fatal error, TestRunner::tearDown was never being called. This resulted in tmpdb schemas littering the database from failed test runs. This changeset fixes the issue by registering TestRunner::tearDown as a shutdown function, so that it gets called even in the event of a PHP Fatal Error.