X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=tests%2Fphpunit%2Fphpunit.php;h=7203777096ec259b99e83ffed155b307520a7f6c;hb=4ac20c2c3b18ffc70fbb2518d8ea6bd16a7bafd8;hp=d8171044f3b813c6deda6731b7f66d49d176cb51;hpb=a5be382adfdad4678eec18413c6a118cb3284daf;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"