tests/phpunit/phpunit.php: Add @codingStandardsIgnore comment
authorVivek Ghaisas <v.a.ghaisas@gmail.com>
Sat, 20 Jun 2015 20:55:06 +0000 (23:55 +0300)
committerVivek Ghaisas <v.a.ghaisas@gmail.com>
Sat, 20 Jun 2015 20:55:06 +0000 (23:55 +0300)
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

tests/phpunit/phpunit.php

index d18ab73..34e3fb4 100755 (executable)
@@ -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;