X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=tests%2Fphpunit%2Fphpunit.php;h=650cfcfa3a189b8de58fa12341a3cc8d8c1ee60d;hp=7203777096ec259b99e83ffed155b307520a7f6c;hb=7065200b036d4bbf0c46f4b236d761a79b57215e;hpb=079d61fb79ac0a026c5a4c3b57bfbdaf3a037cd1 diff --git a/tests/phpunit/phpunit.php b/tests/phpunit/phpunit.php index 7203777096..650cfcfa3a 100755 --- a/tests/phpunit/phpunit.php +++ b/tests/phpunit/phpunit.php @@ -21,6 +21,7 @@ class PHPUnitMaintClass extends Maintenance { 'use-bagostuff' => false, 'use-jobqueue' => false, 'use-normal-tables' => false, + 'mwdebug' => false, 'reuse-db' => false, 'wiki' => false, 'profiler' => false, @@ -79,7 +80,7 @@ class PHPUnitMaintClass extends Maintenance { [ '--configuration', $IP . '/tests/phpunit/suite.xml' ] ); } - $phpUnitClass = 'PHPUnit_TextUI_Command'; + $phpUnitClass = PHPUnit_TextUI_Command::class; if ( $this->hasOption( 'with-phpunitclass' ) ) { $phpUnitClass = $this->getOption( 'with-phpunitclass' ); @@ -112,7 +113,7 @@ class PHPUnitMaintClass extends Maintenance { } } - if ( !class_exists( 'PHPUnit_Framework_TestCase' ) ) { + if ( !class_exists( 'PHPUnit\\Framework\\TestCase' ) ) { echo "PHPUnit not found. Please install it and other dev dependencies by running `composer install` in MediaWiki root directory.\n"; exit( 1 ); @@ -123,9 +124,9 @@ class PHPUnitMaintClass extends Maintenance { exit( 1 ); } - echo defined( 'HHVM_VERSION' ) ? + fwrite( STDERR, defined( 'HHVM_VERSION' ) ? 'Using HHVM ' . HHVM_VERSION . ' (' . PHP_VERSION . ")\n" : - 'Using PHP ' . PHP_VERSION . "\n"; + 'Using PHP ' . PHP_VERSION . "\n" ); // Prepare global services for unit tests. MediaWikiTestCase::prepareServices( new GlobalVarConfig() );