|
Moodle
2.2.1
http://www.collinsharper.com
|
Public Member Functions | |
| __construct () | |
| expectException ($expected=false, $message= '%s') | |
| isExpected ($test, $exception) | |
| getOutstanding () | |
| clear () | |
Definition at line 137 of file exceptions.php.
| __construct | ( | ) |
Clears down the queue ready for action.
Definition at line 144 of file exceptions.php.

| clear | ( | ) |
Discards the contents of the error queue.
Definition at line 193 of file exceptions.php.

| expectException | ( | $ | expected = false, |
| $ | message = '%s' |
||
| ) |
Sets up an expectation of an exception. This has the effect of intercepting an exception that matches.
| SimpleExpectation | $expected | Expected exception to match. |
| string | $message | Message to display. public |
Definition at line 156 of file exceptions.php.

| getOutstanding | ( | ) |
Tests for any left over exception.
Definition at line 186 of file exceptions.php.
| isExpected | ( | $ | test, |
| $ | exception | ||
| ) |
Compares the expected exception with any in the queue. Issues a pass or fail and returns the state of the test.
| SimpleTestCase | $test | Test case to send messages to. |
| Exception | $exception | Exception to compare. |
Definition at line 175 of file exceptions.php.