From e849a1f1537da5ed4d540b558995c5e7aada8d89 Mon Sep 17 00:00:00 2001 From: Platonides Date: Wed, 4 May 2011 14:40:25 +0000 Subject: [PATCH] Tag names can't contain template parameters (thanksfully) --- tests/phpunit/includes/parser/PreprocessorTest.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/phpunit/includes/parser/PreprocessorTest.php b/tests/phpunit/includes/parser/PreprocessorTest.php index dd4d4bdc1b..7a5948d4ed 100644 --- a/tests/phpunit/includes/parser/PreprocessorTest.php +++ b/tests/phpunit/includes/parser/PreprocessorTest.php @@ -38,6 +38,8 @@ class PreprocessorTest extends MediaWikiTestCase { array( "\n{{Foo}}\n", "<noinclude>\n\n</noinclude>" ), array( "\n{{Foo}}\n\n", "<noinclude>\n\n</noinclude>\n" ), array( "foo bar", "galleryfoo bar" ), + array( "<{{foo}}>", "<>" ), + array( "<{{{foo}}}>", "<foo>" ), array( "", "gallery</gallery</gallery>" ), array( "=== Foo === ", "=== Foo === " ), array( "=== Foo === ", "==<!-- -->= Foo === " ), -- 2.20.1