From 86a47804826d8ad5809c744b6b26910710d25863 Mon Sep 17 00:00:00 2001 From: Platonides Date: Mon, 24 Jan 2011 22:10:22 +0000 Subject: [PATCH] Missed the case where there is an equals. It's ugly having to add that literal node there. --- tests/phpunit/includes/parser/PreprocessorTest.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/phpunit/includes/parser/PreprocessorTest.php b/tests/phpunit/includes/parser/PreprocessorTest.php index 89666f4700..01569aaf76 100644 --- a/tests/phpunit/includes/parser/PreprocessorTest.php +++ b/tests/phpunit/includes/parser/PreprocessorTest.php @@ -53,6 +53,7 @@ class PreprocessorTest extends MediaWikiTestCase { array( "{{Foo|bar}}a", "a" ), array( "{{Foo|bar|baz}}", "" ), array( "{{Foo|1=bar}}", "" ), + array( "{{Foo|=bar}}", "" ), array( "{{Foo|bar=baz}}", "" ), array( "{{Foo|1=bar|baz}}", "" ), array( "{{Foo|bar|foo=baz}}", "" ), @@ -84,6 +85,11 @@ class PreprocessorTest extends MediaWikiTestCase { array( "{{Foobar {{Foo}} {{Bar}} {{Baz}} ", "{{Foobar "), array( "[[Foo]] |", "[[Foo]] |"), array( "{{Foo|Bar|", "{{Foo|Bar|"), + array( "[[Foo]", "[[Foo]"), + array( "[[Foo|Bar]", "[[Foo|Bar]"), + array( "{{Foo| [[Bar] }}", "{{Foo| [[Bar] }}"), + array( "{{Foo| [[Bar|Baz] }}", "{{Foo| [[Bar|Baz] }}"), + array( "{{Foo|bar=[[baz]}}", "{{Foo|bar=[[baz]}}"), /* array( file_get_contents( dirname( __FILE__ ) . '/QuoteQuran.txt' ), file_get_contents( dirname( __FILE__ ) . '/QuoteQuranExpanded.txt' ) ), */ ); } -- 2.20.1