Your IP : 216.73.216.54


Current Path : /var/www/html/mediawiki-1.43.1/tests/phpunit/
Upload File :
Current File : /var/www/html/mediawiki-1.43.1/tests/phpunit/MediaWikiTeardownPHPUnitExtension.php

<?php

use PHPUnit\Runner\AfterLastTestHook;

/**
 * PHPUnit extension used in integration tests to clean up the environment after the last test. This will:
 *  - clear the temporary job queue.
 *  - allow extensions to delete any temporary tables they created.
 *  - restore ability to connect to the real database.
 */
class MediaWikiTeardownPHPUnitExtension implements AfterLastTestHook {
	public function executeAfterLastTest(): void {
		MediaWikiIntegrationTestCase::teardownTestDB();
	}
}