From: Vivek Ghaisas Date: Sat, 20 Jun 2015 20:55:06 +0000 (+0300) Subject: tests/phpunit/phpunit.php: Add @codingStandardsIgnore comment X-Git-Tag: 1.31.0-rc.0~11030 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/membres/message.php?a=commitdiff_plain;h=9359cfffd40ffaa022d6c2b745c74a998bcce640;p=lhc%2Fweb%2Fwiklou.git tests/phpunit/phpunit.php: Add @codingStandardsIgnore comment MediaWiki Codesniffer warns that "Silencing errors is discouraged". Assuming this was done with good reason, this patch surrounds the offending line with comments asking codesniffer to ignore the line. Ironically, silencing errors about silencing errors. Change-Id: Ib811b03b0a53735ce0da38bc8861ff38f9d1a666 --- diff --git a/tests/phpunit/phpunit.php b/tests/phpunit/phpunit.php index d18ab73917..34e3fb410d 100755 --- a/tests/phpunit/phpunit.php +++ b/tests/phpunit/phpunit.php @@ -220,7 +220,9 @@ foreach ( array( 'PHPUnit/Runner/Version.php', 'PHPUnit/Autoload.php' ) as $includePath ) { + // @codingStandardsIgnoreStart @include_once $includePath; + // @codingStandardsIgnoreEnd if ( class_exists( 'PHPUnit_TextUI_Command' ) ) { $ok = true; break;