Remove phpunit profiling. It doesn't make any sense
authorChad Horohoe <chadh@wikimedia.org>
Wed, 4 Feb 2015 18:47:57 +0000 (10:47 -0800)
committerBryanDavis <bdavis@wikimedia.org>
Tue, 10 Feb 2015 18:50:52 +0000 (18:50 +0000)
Change-Id: I7aa98ddc0a80f931a685e2946e61aa4a7dfdabff

tests/phpunit/MediaWikiTestCase.php
tests/phpunit/bootstrap.php

index 7e07823..0a0f480 100644 (file)
@@ -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;
                }
 
index 121aade..a5c8ef6 100644 (file)
@@ -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();