mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
MDL-21007 UnitTestCaseUsingDatabase misconfigured unit tests now reported as skipped
This commit is contained in:
parent
776b85474d
commit
2319bdedd6
3 changed files with 12 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue