From c6a8d9609219e28492e4566250f7a2fad48bbcdf Mon Sep 17 00:00:00 2001 From: Platonides Date: Tue, 3 May 2011 19:48:50 +0000 Subject: [PATCH] We can't check if it's a parentNode->type == name_node so early, since it may be just a single } and end up being a literal. --- tests/phpunit/includes/parser/PreprocessorTest.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/phpunit/includes/parser/PreprocessorTest.php b/tests/phpunit/includes/parser/PreprocessorTest.php index 1cee8aea81..182e7f20fa 100644 --- a/tests/phpunit/includes/parser/PreprocessorTest.php +++ b/tests/phpunit/includes/parser/PreprocessorTest.php @@ -56,6 +56,7 @@ class PreprocessorTest extends MediaWikiTestCase { array( "{{Foo|=bar}}", "" ), array( "{{Foo|bar=baz}}", "" ), array( "{{Foo|1=bar|baz}}", "" ), + array( "{{Foo|1=bar|2=baz}}", "" ), array( "{{Foo|bar|foo=baz}}", "" ), array( "{{{1}}}", "1" ), array( "{{{1|}}}", "1" ), @@ -96,6 +97,8 @@ class PreprocessorTest extends MediaWikiTestCase { array( "{{foo|}", "{{foo|}"), array( "{{foo|} }}", ""), array( "{{foo|bar=|}", "{{foo|bar=|}"), + array( "{{Foo|} Bar=", "{{Foo|} Bar="), + array( "{{Foo|} Bar=}}", ""), /* array( file_get_contents( dirname( __FILE__ ) . '/QuoteQuran.txt' ), file_get_contents( dirname( __FILE__ ) . '/QuoteQuranExpanded.txt' ) ), */ ); } -- 2.20.1