Issue Details (XML | Word | Printable)

Key: MDL-20398
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Minor Minor
Assignee: Tim Hunt
Reporter: Tim Hunt
Votes: 0
Watchers: 0
Operations

Add/Edit UI Mockup to this issue
If you were logged in you would be able to see more operations.
Moodle

Unit tests give spurious exceptions when $CFG->debugdisplay is false.

Created: 01/Oct/09 02:03 AM   Updated: 01/Oct/09 02:07 AM
Return to search
Component/s: Unit tests
Affects Version/s: 2.0
Fix Version/s: 2.0

Participants: Tim Hunt
Security Level: None
Resolved date: 01/Oct/09
Affected Branches: MOODLE_20_STABLE
Fixed Branches: MOODLE_20_STABLE


 Description  « Hide
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.

 All   Comments   Change History   Version Control      Sort Order: Ascending order - Click to sort in descending order
tjhunt committed 1 file to 'Moodle CVS' - 01/Oct/09 02:06 AM
unit tests: MDL-20398 spurious exceptions when $CFG->debugdisplay is false
MODIFY lib/weblib.php   Rev. 1.1340    (+7 -2 lines)
tjhunt committed 1 file to 'Moodle CVS' - 01/Oct/09 02:13 AM
unit tests: MDL-20398 spurious exceptions when $CFG->debugdisplay is false

Doh! I had the logic the wrong way round in my previous commit. Sorry.
MODIFY lib/weblib.php   Rev. 1.1341    (+1 -1 lines)