From: Gergő Tisza Date: Sun, 17 Sep 2017 05:03:50 +0000 (+0000) Subject: phpunit.php: omit --quiet in help X-Git-Tag: 1.31.0-rc.0~2073^2 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/bilan.php?a=commitdiff_plain;h=1cd91412e73153931814da1a1609a3d7bc12832b;p=lhc%2Fweb%2Fwiklou.git phpunit.php: omit --quiet in help Bug: T176060 Change-Id: Iee7a0df6ba9fadf92d8e2d9f170cdfc66244d3d5 --- diff --git a/tests/phpunit/phpunit.php b/tests/phpunit/phpunit.php index d8171044f3..7203777096 100755 --- a/tests/phpunit/phpunit.php +++ b/tests/phpunit/phpunit.php @@ -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"