From: Platonides Date: Mon, 17 Jan 2011 23:12:07 +0000 (+0000) Subject: Follow up r80461. In some cases the closing tags for internal tags were not recognised. X-Git-Tag: 1.31.0-rc.0~32492 X-Git-Url: http://git.cyclocoop.org///%22%40url%40//%22?a=commitdiff_plain;h=63eea0f7370b3f180ec2e19f93621cd0796f83ef;p=lhc%2Fweb%2Fwiklou.git Follow up r80461. In some cases the closing tags for internal tags were not recognised. --- diff --git a/tests/phpunit/includes/parser/PreprocessorTest.php b/tests/phpunit/includes/parser/PreprocessorTest.php index b072853672..472c14548a 100644 --- a/tests/phpunit/includes/parser/PreprocessorTest.php +++ b/tests/phpunit/includes/parser/PreprocessorTest.php @@ -35,6 +35,8 @@ class PreprocessorTest extends MediaWikiTestCase { array( " ", "<foo> gallery</gallery>" ), array( " ", "<foo> gallery<gallery></gallery>" ), array( " Foo bar ", "<noinclude> Foo bar </noinclude>" ), + array( "\n{{Foo}}\n", "<noinclude>\n\n</noinclude>" ), + array( "\n{{Foo}}\n\n", "<noinclude>\n\n</noinclude>\n" ), array( "foo bar", "galleryfoo bar" ), array( "", "gallery</gallery</gallery>" ), array( "=== Foo === ", "=== Foo === " ),