phpunit: Call 'teardownTestDB' from shutdown instead of destruct.
authorTimo Tijhof <krinklemail@gmail.com>
Fri, 29 Mar 2019 19:52:00 +0000 (19:52 +0000)
committerTimo Tijhof <krinklemail@gmail.com>
Fri, 29 Mar 2019 19:52:00 +0000 (19:52 +0000)
commitf28d5f772fde609ed6cc09e2aafd641e806e5bdf
treedad0bf214e14ddaf84cba8c3be8731bd855c1e4f
parentd159839c392dcd1dc1373b774136f5f9746e51f8
phpunit: Call 'teardownTestDB' from shutdown instead of destruct.

This will be called right before the shutdown procedure begins,
so that all variables and classes still exist, and the hooks
can actually work.

See task for details.

Bug: T219673
Change-Id: Id6b2b4b7958b78822a0868720f7b0ba46d7b4951
tests/phpunit/bootstrap.php