Index: trunk/extensions/DataTransclusion/tests/DataTransclusionTest.php |
— | — | @@ -46,12 +46,16 @@ |
47 | 47 | return Parser::statelessFetchTemplate( $title, $parser ); |
48 | 48 | } |
49 | 49 | } |
| 50 | + |
| 51 | + static function setUpBeforeClass() { |
| 52 | + global $wgTitle, $wgParser; |
| 53 | + $wgTitle = Title::newFromText( "Test" ); |
| 54 | + } |
50 | 55 | |
51 | 56 | function setUp() { |
52 | 57 | global $wgTitle, $wgParser; |
53 | 58 | |
54 | | - $wgTitle = Title::newFromText( "Test" ); |
55 | | - |
| 59 | + $wgParser = new Parser(); |
56 | 60 | $wgParser->Options( new ParserOptions() ); |
57 | 61 | $wgParser->clearState(); |
58 | 62 | $wgParser->setTitle( $wgTitle ); |
— | — | @@ -493,6 +497,7 @@ |
494 | 498 | if ( !defined('MW_PHPUNIT_TEST') ) { |
495 | 499 | $wgShowExceptionDetails = true; |
496 | 500 | |
| 501 | + DataTransclusionTest::setUpBeforeClass(); |
497 | 502 | $t = new DataTransclusionTest(); |
498 | 503 | $t->setUp(); |
499 | 504 | |