From f6763bdb883dfaf9b41283e3de3de321b738b54a Mon Sep 17 00:00:00 2001 From: Platonides Date: Fri, 21 Jan 2011 22:00:07 +0000 Subject: [PATCH] The << operator (level 7) has greater priority than bitwise or (level 12), which makes getNextSibling() function wrong for values >= 256. --- 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 72bdd4205c..3e5eafc0ff 100644 --- a/tests/phpunit/includes/parser/PreprocessorTest.php +++ b/tests/phpunit/includes/parser/PreprocessorTest.php @@ -80,6 +80,8 @@ class PreprocessorTest extends MediaWikiTestCase { array( "{{#if: {{{1|}}} | Foo | [[Bar]] }}", ""), array( "{{#if: {{{1|}}} | [[Foo]] | Bar }}", ""), array( "{{#if: {{{1|}}} | 1 | {{#if: {{{1|}}} | 2 | 3 }} }}", ""), + array( "{{ {{Foo}}", "{{ "), + array( "{{Foobar {{Foo}} {{Bar}} {{Baz}} ", "{{Foobar "), /* array( file_get_contents( dirname( __FILE__ ) . '/QuoteQuran.txt' ), file_get_contents( dirname( __FILE__ ) . '/QuoteQuranExpanded.txt' ) ), */ ); } -- 2.20.1