From: Platonides Date: Wed, 30 Mar 2011 17:41:58 +0000 (+0000) Subject: Add a couple of brace test cases. X-Git-Tag: 1.31.0-rc.0~31125 X-Git-Url: http://git.cyclocoop.org//%27%40script%40/%27?a=commitdiff_plain;h=25a338f5e0479a75e463144905dc02d5883d536a;p=lhc%2Fweb%2Fwiklou.git Add a couple of brace test cases. --- diff --git a/tests/phpunit/includes/parser/PreprocessorTest.php b/tests/phpunit/includes/parser/PreprocessorTest.php index f54a431dd0..a3acd72906 100644 --- a/tests/phpunit/includes/parser/PreprocessorTest.php +++ b/tests/phpunit/includes/parser/PreprocessorTest.php @@ -64,6 +64,8 @@ class PreprocessorTest extends MediaWikiTestCase { array( "{{{Foo|bar|baz}}}", "Foobarbaz" ), array( "{{Foo}}", "{<!-- -->{Foo}}" ), array( "{{{{Foobar}}}}", "{Foobar}" ), + array( "{{{ {{Foo}} }}}", " <template><title>Foo " ), + array( "{{ {{{Foo}}} }}", "" ), array( "{{{{{Foo}}}}}", "" ), array( "{{{{{Foo}} }}}", "<template><title>Foo " ), array( "{{{{{{Foo}}}}}}", "<tplarg><title>Foo" ),