From 950368c7e868ea6a1515419d013bb57493b382f4 Mon Sep 17 00:00:00 2001 From: Chad Horohoe Date: Wed, 4 Feb 2015 10:47:57 -0800 Subject: [PATCH] Remove phpunit profiling. It doesn't make any sense Change-Id: I7aa98ddc0a80f931a685e2946e61aa4a7dfdabff --- tests/phpunit/MediaWikiTestCase.php | 8 -------- tests/phpunit/bootstrap.php | 7 ------- 2 files changed, 15 deletions(-) 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(); -- 2.20.1