|
Moodle
2.2.1
http://www.collinsharper.com
|


Public Member Functions | |
| __construct ($expected, $message= '%s') | |
| test ($compare) | |
| testMessage ($compare) | |
Protected Member Functions | |
| describeException ($exception) | |
Definition at line 70 of file exceptions.php.
| __construct | ( | $ | expected, |
| $ | message = '%s' |
||
| ) |
Sets up the conditions to test against. If the expected value is a string, then it will act as a test of the class name. An exception as the comparison will trigger an identical match. Writing this down now makes it look doubly dumb. I hope come up with a better scheme later.
| mixed | $expected | A class name or an actual exception to compare with. |
| string | $message | Message to display. |
Definition at line 85 of file exceptions.php.
| describeException | ( | $ | exception | ) | [protected] |
Summary of an Exception object.
| Exception | $compare | Exception to describe. |
Definition at line 125 of file exceptions.php.

| test | ( | $ | compare | ) |
Carry out the test.
| Exception | $compare | Value to check. |
Reimplemented from SimpleExpectation.
Definition at line 95 of file exceptions.php.
| testMessage | ( | $ | compare | ) |
Create the message to display describing the test.
| Exception | $compare | Exception to match. |
Reimplemented from SimpleExpectation.
Definition at line 110 of file exceptions.php.
