From 25a338f5e0479a75e463144905dc02d5883d536a Mon Sep 17 00:00:00 2001 From: Platonides Date: Wed, 30 Mar 2011 17:41:58 +0000 Subject: [PATCH] Add a couple of brace test cases. --- tests/phpunit/includes/parser/PreprocessorTest.php | 2 ++ 1 file changed, 2 insertions(+) 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" ), -- 2.20.1