X-Git-Url: http://git.cyclocoop.org/data/Luca_Pacioli_%28Gemaelde%29.jpeg?a=blobdiff_plain;f=tests%2Fphan%2Fconfig.php;h=71ebd6f4d0dc6f8fe2ea9a4692cbb31ded055467;hb=ff84fbe8a0d7ddfd535bb38d11ede04b9fad039e;hp=52a565c5fa17fb3360f7d33808e418227eac0f84;hpb=09de89c9886e38d9edffbd5edac1b0a837fa262a;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phan/config.php b/tests/phan/config.php index 52a565c5fa..71ebd6f4d0 100644 --- a/tests/phan/config.php +++ b/tests/phan/config.php @@ -38,6 +38,10 @@ return [ function_exists( 'tideways_enable' ) ? [] : [ 'tests/phan/stubs/tideways.php' ], class_exists( PEAR::class ) ? [] : [ 'tests/phan/stubs/mail.php' ], class_exists( Memcached::class ) ? [] : [ 'tests/phan/stubs/memcached.php' ], + // Per composer.json, PHPUnit 6 is used for PHP 7.0+, PHPUnit 4 otherwise. + // Load the interface for the version of PHPUnit that isn't installed. + // Phan only supports PHP 7.0+ (and not HHVM), so we only need to stub PHPUnit 4. + class_exists( PHPUnit_TextUI_Command::class ) ? [] : [ 'tests/phan/stubs/phpunit4.php' ], [ 'maintenance/7zip.inc', 'maintenance/backup.inc', @@ -294,8 +298,6 @@ return [ * to this black-list to inhibit them from being reported. */ 'suppress_issue_types' => [ - // approximate error count: 1 - "PhanAccessMethodProtected", // approximate error count: 29 "PhanCommentParamOnEmptyParamList", // approximate error count: 33