MDL-21007 UnitTestCaseUsingDatabase misconfigured unit tests now reported as skipped

This commit is contained in:
Eloy Lafuente 2009-11-30 23:18:34 +00:00
parent 776b85474d
commit 2319bdedd6
3 changed files with 12 additions and 1 deletions

View file

@ -68,6 +68,15 @@ class ExHtmlReporter extends HtmlReporter {
$this->_paintPassFail('fail', $message);
}
/**
* Called when a skip needs to be output.
*/
function paintSkip($message) {
// Explicitly call grandparent, not parent::paintFail.
SimpleScorer::paintSkip($message);
$this->_paintPassFail('skip', $message);
}
/**
* Called when an error (uncaught exception or PHP error) needs to be output.
*/
@ -78,7 +87,7 @@ class ExHtmlReporter extends HtmlReporter {
}
/**
* Private method. Used by printPass/Fail/Error.
* Private method. Used by printPass/Fail/Skip/Error.
*/
function _paintPassFail($passorfail, $message, $rawmessage=false) {
global $FULLME, $CFG, $OUTPUT;