X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2Fparser%2FPreprocessorTest.php;h=345fd0a524d28057083633c5aca1486aa5d18adc;hb=5cb425a62b6eba0161702fe49568d137d7b91c91;hp=cfb3f72e7a9ed76334b6059e779645a9bbc1f0da;hpb=453ee14fe1fb64963687ad111ea6da3e4b907949;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phpunit/includes/parser/PreprocessorTest.php b/tests/phpunit/includes/parser/PreprocessorTest.php index cfb3f72e7a..345fd0a524 100644 --- a/tests/phpunit/includes/parser/PreprocessorTest.php +++ b/tests/phpunit/includes/parser/PreprocessorTest.php @@ -16,7 +16,9 @@ class PreprocessorTest extends MediaWikiTestCase { global $wgParserConf, $wgContLang; parent::setUp(); $this->mOptions = ParserOptions::newFromUserAndLang( new User, $wgContLang ); - $name = isset( $wgParserConf['preprocessorClass'] ) ? $wgParserConf['preprocessorClass'] : 'Preprocessor_DOM'; + $name = isset( $wgParserConf['preprocessorClass'] ) + ? $wgParserConf['preprocessorClass'] + : 'Preprocessor_DOM'; $this->mPreprocessor = new $name( $this ); } @@ -26,6 +28,7 @@ class PreprocessorTest extends MediaWikiTestCase { } public static function provideCases() { + // @codingStandardsIgnoreStart Ignore Generic.Files.LineLength.TooLong return array( array( "Foo", "Foo" ), array( "", "<!-- Foo -->" ), @@ -113,6 +116,7 @@ class PreprocessorTest extends MediaWikiTestCase { array( "{{Foo|} Bar=}}", "" ), /* array( file_get_contents( __DIR__ . '/QuoteQuran.txt' ), file_get_contents( __DIR__ . '/QuoteQuranExpanded.txt' ) ), */ ); + // @codingStandardsIgnoreEnd } /** @@ -157,6 +161,7 @@ class PreprocessorTest extends MediaWikiTestCase { * These are more complex test cases taken out of wiki articles. */ public static function provideFiles() { + // @codingStandardsIgnoreStart Ignore Generic.Files.LineLength.TooLong return array( array( "QuoteQuran" ), # http://en.wikipedia.org/w/index.php?title=Template:QuoteQuran/sandbox&oldid=237348988 GFDL + CC BY-SA by Striver array( "Factorial" ), # http://en.wikipedia.org/w/index.php?title=Template:Factorial&oldid=98548758 GFDL + CC BY-SA by Polonium @@ -164,6 +169,7 @@ class PreprocessorTest extends MediaWikiTestCase { array( "Fundraising" ), # http://tl.wiktionary.org/w/index.php?title=MediaWiki:Sitenotice&oldid=5716 GFDL + CC BY-SA, copied there by Sky Harbor. array( "NestedTemplates" ), # bug 27936 ); + // @codingStandardsIgnoreEnd } /** @@ -190,6 +196,7 @@ class PreprocessorTest extends MediaWikiTestCase { * Tests from Bug 28642 · https://bugzilla.wikimedia.org/28642 */ public static function provideHeadings() { + // @codingStandardsIgnoreStart Ignore Generic.Files.LineLength.TooLong return array( /* These should become headings: */ array( "== h ==", "== h ==<!--c1-->" ), array( "== h == ", "== h == <!--c1-->" ), @@ -227,6 +234,7 @@ class PreprocessorTest extends MediaWikiTestCase { array( "== h == x ", "== h ==<!--c1--> x <!--c2--><!--c3--> " ), array( "== h == x ", "== h ==<!--c1--><!--c2--><!--c3--> x " ), ); + // @codingStandardsIgnoreEnd } /**