Move profile In/OUT call out of MWPHPUnitCommand

Change-Id: I710fddc20e88745c9091432dff87b5e361c1f71a
This commit is contained in:
addshore 2014-05-05 13:53:26 +01:00 committed by Addshore
parent 159dc79049
commit 9d69b15958
2 changed files with 6 additions and 14 deletions

View file

@ -52,20 +52,6 @@ class MediaWikiPHPUnitCommand extends PHPUnit_TextUI_Command {
}
}
public function run( array $argv, $exit = true ) {
wfProfileIn( __METHOD__ );
$ret = parent::run( $argv, false );
wfProfileOut( __METHOD__ );
if ( $exit ) {
exit( $ret );
} else {
return $ret;
}
}
public function showHelp() {
parent::showHelp();

View file

@ -16,7 +16,13 @@ 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();