Remove unreachable return;
authorSam Reed <reedy@users.mediawiki.org>
Mon, 3 Jan 2011 03:40:26 +0000 (03:40 +0000)
committerSam Reed <reedy@users.mediawiki.org>
Mon, 3 Jan 2011 03:40:26 +0000 (03:40 +0000)
Add missing global $IP;

tests/phpunit/includes/parser/NewParserTest.php

index 12772a8..dcd1174 100644 (file)
@@ -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;
                                }
                        }