3 use PHPUnit\Runner\AfterLastTestHook
;
6 * PHPUnit extension used in integration tests to clean up the environment after the last test. This will:
7 * - clear the temporary job queue.
8 * - allow extensions to delete any temporary tables they created.
9 * - restore ability to connect to the real database.
11 class MediaWikiTeardownPHPUnitExtension
implements AfterLastTestHook
{
12 public function executeAfterLastTest(): void
{
13 MediaWikiIntegrationTestCase
::teardownTestDB();