From da2c995df1da24faa15dc35b9aafc1448da7d482 Mon Sep 17 00:00:00 2001 From: Sam Reed Date: Mon, 3 Jan 2011 03:40:26 +0000 Subject: [PATCH] Remove unreachable return; Add missing global $IP; --- tests/phpunit/includes/parser/NewParserTest.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/tests/phpunit/includes/parser/NewParserTest.php b/tests/phpunit/includes/parser/NewParserTest.php index 12772a8914..dcd11747bd 100644 --- a/tests/phpunit/includes/parser/NewParserTest.php +++ b/tests/phpunit/includes/parser/NewParserTest.php @@ -26,11 +26,9 @@ class NewParserTest extends MediaWikiTestCase { //PHPUnit + MediaWikiTestCase functions function setUp() { - global $wgContLang, $wgUseDatabaseMessages, $wgMsgCacheExpiry, $wgNamespaceProtection, $wgNamespaceAliases; + global $wgContLang, $wgUseDatabaseMessages, $wgMsgCacheExpiry, $wgNamespaceProtection, $wgNamespaceAliases, $IP; $wgContLang = Language::factory( 'en' ); - - //Setup CLI arguments if ( $this->getCliArg( 'regex=' ) ) { $this->regex = $this->getCliArg( 'regex=' ); @@ -536,7 +534,6 @@ class NewParserTest extends MediaWikiTestCase { } throw new MWException( $ret ); - return; } } -- 2.20.1