phpunit.php: omit --quiet in help
authorGergő Tisza <gtisza@wikimedia.org>
Sun, 17 Sep 2017 05:03:50 +0000 (05:03 +0000)
committerGergő Tisza <gtisza@wikimedia.org>
Sun, 17 Sep 2017 06:15:38 +0000 (06:15 +0000)
Bug: T176060
Change-Id: Iee7a0df6ba9fadf92d8e2d9f170cdfc66244d3d5

tests/phpunit/phpunit.php

index d817104..7203777 100755 (executable)
@@ -137,6 +137,15 @@ class PHPUnitMaintClass extends Maintenance {
                return Maintenance::DB_ADMIN;
        }
 
+       protected function addOption( $name, $description, $required = false,
+               $withArg = false, $shortName = false, $multiOccurrence = false
+       ) {
+               // ignore --quiet which does not really make sense for unit tests
+               if ( $name !== 'quiet' ) {
+                       parent::addOption( $name, $description, $required, $withArg, $shortName, $multiOccurrence );
+               }
+       }
+
        /**
         * Force the format of elements in $_SERVER['argv']
         *  - Split args such as "wiki=enwiki" into two separate arg elements "wiki" and "enwiki"