From: Sam Reed Date: Thu, 16 Feb 2012 02:44:31 +0000 (+0000) Subject: Add NewParserTest to TestsAutoLoader.php X-Git-Tag: 1.31.0-rc.0~24677 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22articles%22%2C%22id_article=%24id_article%22%29%20.%20%22?a=commitdiff_plain;h=2e8cd32808e95ab8a77ce07fef554aed1e32009b;p=lhc%2Fweb%2Fwiklou.git Add NewParserTest to TestsAutoLoader.php Fix undefined variable in testHelpers.inc --- 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 +}