MediaWiki
REL1_19
|
00001 <?php 00009 if ( !defined( 'MW_PHPUNIT_TEST' ) ) { 00010 echo <<<EOF 00011 You are running these tests directly from phpunit. You may not have all globals correctly set. 00012 Running phpunit.php instead is recommended. 00013 EOF; 00014 require_once ( dirname( __FILE__ ) . "/phpunit.php" ); 00015 } 00016 00017 // Output a notice when running with older versions of PHPUnit 00018 if ( !version_compare( PHPUnit_Runner_Version::id(), "3.4.1", ">" ) ) { 00019 echo <<<EOF 00020 ******************************************************************************** 00021 00022 These tests run best with version PHPUnit 3.4.2 or better. Earlier versions may 00023 show failures because earlier versions of PHPUnit do not properly implement 00024 dependencies. 00025 00026 ******************************************************************************** 00027 00028 EOF; 00029 } 00030 00032 MessageCache::destroyInstance();