Add @covers tags to specials tests
[lhc/web/wiklou.git] / tests / phpunit / bootstrap.php
1 <?php
2 /**
3 * Bootstrapping for MediaWiki PHPUnit tests
4 * This file is included by phpunit and is NOT in the global scope.
5 *
6 * @file
7 */
8
9 if ( !defined( 'MW_PHPUNIT_TEST' ) ) {
10 echo <<<EOF
11 You are running these tests directly from phpunit. You may not have all globals correctly set.
12 Running phpunit.php instead is recommended.
13 EOF;
14 require_once __DIR__ . "/phpunit.php";
15 }
16
17 class MediaWikiPHPUnitBootstrap {
18 public function __destruct() {
19 // Return to real wiki db, so profiling data is preserved
20 MediaWikiTestCase::teardownTestDB();
21
22 // Log profiling data, e.g. in the database or UDP
23 wfLogProfilingData();
24 }
25
26 }
27
28 // This will be destructed after all tests have been run
29 $mediawikiPHPUnitBootstrap = new MediaWikiPHPUnitBootstrap();