Add NewParserTest to TestsAutoLoader.php
authorSam Reed <reedy@users.mediawiki.org>
Thu, 16 Feb 2012 02:44:31 +0000 (02:44 +0000)
committerSam Reed <reedy@users.mediawiki.org>
Thu, 16 Feb 2012 02:44:31 +0000 (02:44 +0000)
Fix undefined variable in testHelpers.inc

tests/TestsAutoLoader.php
tests/testHelpers.inc

index 41bddfc..0c97daa 100644 (file)
@@ -9,6 +9,7 @@ $wgAutoloadClasses += array(
        'MediaWikiTestCase' => "$testFolder/phpunit/MediaWikiTestCase.php",
        'MediaWikiPHPUnitCommand' => "$testFolder/phpunit/MediaWikiPHPUnitCommand.php",
        'MediaWikiLangTestCase' => "$testFolder/phpunit/MediaWikiLangTestCase.php",
+       'NewParserTest' => "$testFolder/phpunit/includes/parser/NewParserTest.php",
 
        //includes
        'BlockTest' => "$testFolder/phpunit/includes/BlockTest.php",
index 7fc60a5..39e18c9 100644 (file)
@@ -460,7 +460,7 @@ class TestFileIterator implements Iterator {
                                }
 
                                if ( isset ( $this->sectionData[$this->section] ) ) {
-                                       throw new MWException( "duplicate section '$section' at line {$this->lineNum} of $this->file\n" );
+                                       throw new MWException( "duplicate section '$this->section' at line {$this->lineNum} of $this->file\n" );
                                }
 
                                $this->sectionData[$this->section] = '';
@@ -579,4 +579,4 @@ class DelayedParserTest {
                $this->fnHooks[] = $fnHook;
        }
 
-}
\ No newline at end of file
+}