From: Platonides Date: Sat, 5 Feb 2011 20:05:00 +0000 (+0000) Subject: Fix problem when running a fakePipeFound, which could lead to literals being incorrec... X-Git-Tag: 1.31.0-rc.0~32186 X-Git-Url: http://git.cyclocoop.org/data/Luca_Pacioli_%28Gemaelde%29.jpeg?a=commitdiff_plain;h=fd84fbf739c30f6692ec66cad17e426af6074758;p=lhc%2Fweb%2Fwiklou.git Fix problem when running a fakePipeFound, which could lead to literals being incorrectly added to the part node instead of the value node. --- diff --git a/tests/phpunit/includes/parser/PreprocessorTest.php b/tests/phpunit/includes/parser/PreprocessorTest.php index 01569aaf76..f54a431dd0 100644 --- a/tests/phpunit/includes/parser/PreprocessorTest.php +++ b/tests/phpunit/includes/parser/PreprocessorTest.php @@ -90,6 +90,10 @@ class PreprocessorTest extends MediaWikiTestCase { array( "{{Foo| [[Bar] }}", "{{Foo| [[Bar] }}"), array( "{{Foo| [[Bar|Baz] }}", "{{Foo| [[Bar|Baz] }}"), array( "{{Foo|bar=[[baz]}}", "{{Foo|bar=[[baz]}}"), + array( "{{foo|", "{{foo|"), + array( "{{foo|}", "{{foo|}"), + array( "{{foo|} }}", ""), + array( "{{foo|bar=|}", "{{foo|bar=|}"), /* array( file_get_contents( dirname( __FILE__ ) . '/QuoteQuran.txt' ), file_get_contents( dirname( __FILE__ ) . '/QuoteQuranExpanded.txt' ) ), */ ); }