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