From 2e8cd32808e95ab8a77ce07fef554aed1e32009b Mon Sep 17 00:00:00 2001 From: Sam Reed Date: Thu, 16 Feb 2012 02:44:31 +0000 Subject: [PATCH] Add NewParserTest to TestsAutoLoader.php Fix undefined variable in testHelpers.inc --- tests/TestsAutoLoader.php | 1 + tests/testHelpers.inc | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/TestsAutoLoader.php b/tests/TestsAutoLoader.php index 41bddfcd85..0c97daa0cc 100644 --- a/tests/TestsAutoLoader.php +++ b/tests/TestsAutoLoader.php @@ -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", diff --git a/tests/testHelpers.inc b/tests/testHelpers.inc index 7fc60a5cf5..39e18c920d 100644 --- a/tests/testHelpers.inc +++ b/tests/testHelpers.inc @@ -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 +} -- 2.20.1