Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 2.0
-
Fix Version/s: 2.0
-
Component/s: Unit tests
-
Labels:None
-
Affected Branches:MOODLE_20_STABLE
-
Fixed Branches:MOODLE_20_STABLE
Description
The problem is that when $CFG->debugdisplay is false, debugging calls trigger_error. The unit test framework reports all calls to trigger_error as exceptions.
Activity
- All
- Comments
- History
- Activity
- Source
- Test Sessions
The best solution I can see is to display all debugging messages on-screen during unit testing.
The only alternative would be to ignore debugging messages completely during unit tests when $CFG->debugdisplay is false, and that seems like a worse option.
Fix checked in, with a comment pointing to this bug.