X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=tests%2Fphpunit%2Fphpunit.php;h=7203777096ec259b99e83ffed155b307520a7f6c;hb=1ed097a16517656998d3e4d00d4e60d710a88f25;hp=d8171044f3b813c6deda6731b7f66d49d176cb51;hpb=a6c5f1a81599bc24005554f330f56d7a1b054d4b;p=lhc%2Fweb%2Fwiklou.git 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"