From: Chad Horohoe Date: Wed, 4 Feb 2015 18:47:57 +0000 (-0800) Subject: Remove phpunit profiling. It doesn't make any sense X-Git-Tag: 1.31.0-rc.0~12464^2 X-Git-Url: http://git.heureux-cyclage.org/?a=commitdiff_plain;h=950368c7e868ea6a1515419d013bb57493b382f4;p=lhc%2Fweb%2Fwiklou.git Remove phpunit profiling. It doesn't make any sense Change-Id: I7aa98ddc0a80f931a685e2946e61aa4a7dfdabff --- diff --git a/tests/phpunit/MediaWikiTestCase.php b/tests/phpunit/MediaWikiTestCase.php index 7e07823969..0a0f480ffc 100644 --- a/tests/phpunit/MediaWikiTestCase.php +++ b/tests/phpunit/MediaWikiTestCase.php @@ -117,23 +117,15 @@ abstract class MediaWikiTestCase extends PHPUnit_Framework_TestCase { $this->checkDbIsSupported(); if ( !self::$dbSetup ) { - wfProfileIn( $logName . ' (clone-db)' ); - // switch to a temporary clone of the database self::setupTestDB( $this->db, $this->dbPrefix() ); if ( ( $this->db->getType() == 'oracle' || !self::$useTemporaryTables ) && self::$reuseDB ) { $this->resetDB(); } - - wfProfileOut( $logName . ' (clone-db)' ); } - - wfProfileIn( $logName . ' (prepare-db)' ); $this->addCoreDBData(); $this->addDBData(); - wfProfileOut( $logName . ' (prepare-db)' ); - $needsResetDB = true; } diff --git a/tests/phpunit/bootstrap.php b/tests/phpunit/bootstrap.php index 121aade91b..a5c8ef61c4 100644 --- a/tests/phpunit/bootstrap.php +++ b/tests/phpunit/bootstrap.php @@ -15,14 +15,7 @@ EOF; } class MediaWikiPHPUnitBootstrap { - - public function __construct() { - wfProfileIn( __CLASS__ ); - } - public function __destruct() { - wfProfileOut( __CLASS__ ); - // Return to real wiki db, so profiling data is preserved MediaWikiTestCase::teardownTestDB();