X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=tests%2Fphpunit%2Fphpunit.php;h=bcbf4ec121aaaf498dcee4db57279b1adbcf6d35;hb=122e6813f70027d5eab5870f00d94327333d0a3f;hp=e3f780bfddfc44a8ed4ec64c3d38662cbbbddc6a;hpb=ece03cc143fef3d305e48275df7bdf9c6d0baa69;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phpunit/phpunit.php b/tests/phpunit/phpunit.php index e3f780bfdd..bcbf4ec121 100755 --- a/tests/phpunit/phpunit.php +++ b/tests/phpunit/phpunit.php @@ -9,7 +9,7 @@ /* Configuration */ // Evaluate the include path relative to this file -$IP = dirname( dirname( dirname( __FILE__ ) ) ); +$IP = dirname( dirname( __DIR__ ) ); // Set a flag which can be used to detect when other scripts have been entered through this entry point or not define( 'MW_PHPUNIT_TEST', true ); @@ -34,6 +34,10 @@ class PHPUnitMaintClass extends Maintenance { global $wgMainCacheType, $wgMessageCacheType, $wgParserCacheType; global $wgLanguageConverterCacheType, $wgUseDatabaseMessages; global $wgLocaltimezone, $wgLocalisationCacheConf; + global $wgDevelopmentWarnings; + + // wfWarn should cause tests to fail + $wgDevelopmentWarnings = true; $wgMainCacheType = CACHE_NONE; $wgMessageCacheType = CACHE_NONE; @@ -94,8 +98,8 @@ require( RUN_MAINTENANCE_IF_MAIN ); require_once( 'PHPUnit/Runner/Version.php' ); if( PHPUnit_Runner_Version::id() !== '@package_version@' - && version_compare( PHPUnit_Runner_Version::id(), '3.5.0', '<' ) ) { - die( 'PHPUnit 3.5 or later required, you have ' . PHPUnit_Runner_Version::id() . ".\n" ); + && version_compare( PHPUnit_Runner_Version::id(), '3.6.7', '<' ) ) { + die( 'PHPUnit 3.6.7 or later required, you have ' . PHPUnit_Runner_Version::id() . ".\n" ); } require_once( 'PHPUnit/Autoload.php' );