From: Platonides Date: Fri, 21 Jan 2011 22:00:07 +0000 (+0000) Subject: The << operator (level 7) has greater priority than bitwise or (level 12), X-Git-Tag: 1.31.0-rc.0~32446 X-Git-Url: http://git.cyclocoop.org/%24dirpuce/puce%24spip_lang_rtl.gif?a=commitdiff_plain;h=f6763bdb883dfaf9b41283e3de3de321b738b54a;p=lhc%2Fweb%2Fwiklou.git The << operator (level 7) has greater priority than bitwise or (level 12), which makes getNextSibling() function wrong for values >= 256. --- 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' ) ), */ ); }