Silly bug with value nodes.
authorPlatonides <platonides@users.mediawiki.org>
Mon, 24 Jan 2011 19:40:25 +0000 (19:40 +0000)
committerPlatonides <platonides@users.mediawiki.org>
Mon, 24 Jan 2011 19:40:25 +0000 (19:40 +0000)
tests/phpunit/includes/parser/PreprocessorTest.php

index c5f5eb6..89666f4 100644 (file)
@@ -83,6 +83,7 @@ class PreprocessorTest extends MediaWikiTestCase {
                        array( "{{ {{Foo}}", "<root>{{ <template><title>Foo</title></template></root>"),
                        array( "{{Foobar {{Foo}} {{Bar}} {{Baz}} ", "<root>{{Foobar <template><title>Foo</title></template> <template><title>Bar</title></template> <template><title>Baz</title></template> </root>"),
                        array( "[[Foo]] |", "<root>[[Foo]] |</root>"),
+                       array( "{{Foo|Bar|", "<root>{{Foo|Bar|</root>"),
                        /* array( file_get_contents( dirname( __FILE__ ) . '/QuoteQuran.txt' ), file_get_contents( dirname( __FILE__ ) . '/QuoteQuranExpanded.txt' ) ), */
                );
        }