From: Platonides Date: Mon, 24 Jan 2011 22:10:22 +0000 (+0000) Subject: Missed the case where there is an equals. X-Git-Tag: 1.31.0-rc.0~32377 X-Git-Url: http://git.cyclocoop.org/%27.parametre_url%28%20%20%20generer_action_auteur%28%27charger_plugin%27%2C%20%27update_flux%27%29%2C%27update_flux%27%2C%20%27oui%27%29.%27?a=commitdiff_plain;h=86a47804826d8ad5809c744b6b26910710d25863;p=lhc%2Fweb%2Fwiklou.git Missed the case where there is an equals. It's ugly having to add that literal node there. --- 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' ) ), */ ); }