Move profile In/OUT call out of MWPHPUnitCommand
Change-Id: I710fddc20e88745c9091432dff87b5e361c1f71a
This commit is contained in:
parent
159dc79049
commit
9d69b15958
2 changed files with 6 additions and 14 deletions
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue