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=84132b9682f94fce034120ebdaa76aeced9c94c7;hpb=74426f3cf796b149f1ae445e41815bbe148640b2;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phan/config.php b/tests/phan/config.php index 84132b9682..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',